DEV Community

Discussion on: Promises in 15 minutes

Collapse
 
jamesthomson profile image
James Thomson

Just be careful with Promise.all, if one promise fails, then all are considered rejected. IMO, using Promise.allSettled is a better approach - but also a much newer method.

Collapse
 
marianesantana profile image
Mariane Santana

Thanks for the tip, never have I ever use Promise.allSettled. But I'm working in part 2 with more details about Promises. ;)

Collapse
 
mikkodc profile image
mikkodc

Great tip as well! I never knew that this existed, thanks. I'm just starting out on the new ES version