DEV Community

Discussion on: Tips For Using Async/Await - Write Better JavaScript!

Collapse
 
vishalraj82 profile image
Vishal Raj

@milindsoorya You have summed the promise nicely for those looking to get started. For Promise.all, you missed to mention that it will reject, the moment any promise returns failure.
Alternatively, Promise.allSettled lets all the promises run (whether resolve or reject), and finally resolves with the status of each promise as array.