Created
March 8, 2021 11:40
-
-
Save jaydson/65f34f07665293609fc2b5eabfc3fec8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Promise.all([ | |
new Promise((resolve, reject) => {}), | |
new Promise((resolve, reject)=>{}), | |
new Promise((resolve, reject)=>{}) | |
]) | |
.then(result => { | |
console.info('Ok'); | |
}) | |
.catch(reason => { | |
console.warn('Failed!', reason); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment