Skip to content

Instantly share code, notes, and snippets.

@jaydson
Created March 8, 2021 11:40
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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