Skip to content

Instantly share code, notes, and snippets.

@jaydson
Created March 8, 2021 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaydson/65f34f07665293609fc2b5eabfc3fec8 to your computer and use it in GitHub Desktop.
Save jaydson/65f34f07665293609fc2b5eabfc3fec8 to your computer and use it in GitHub Desktop.
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