DEV Community

Cover image for JavaScript Promise: .all() vs .allSettled() and .race() vs .any()

JavaScript Promise: .all() vs .allSettled() and .race() vs .any()

Shameel Uddin on August 26, 2023

In previous articles we learned about how Promise work and discussed about then catch and finally methods. Today we will be discussing: Promise....
Collapse
 
noblica profile image
Dušan Perković

Great explanation of all these method! Thanks!

Collapse
 
shameel profile image
Shameel Uddin

Thank you very much for the appreciation 🙌

Collapse
 
suryakapila profile image
Surya Kapila

Thank you for the explanation! Appreciate the effort.

Collapse
 
ricardogesteves profile image
Ricardo Esteves

Nice article, thanks for sharing it!

Collapse
 
ndaidong profile image
Dong Nguyen

great post, thank you for your clear explaining 👍

Collapse
 
shameel profile image
Shameel Uddin

Glad to know :)

Collapse
 
heeto profile image
Heeto Bha

explained very well

Collapse
 
oyerohabib profile image
oyerohabib

Great explanation! Thanks for sharing.

Collapse
 
websilvercraft profile image
websilvercraft

Nice explanation, I also used Promise.race to add timeouts to fetch calls.

Collapse
 
craftogrammer profile image
Rahul

Awesome article bro...

Collapse
 
shameel profile image
Shameel Uddin

Thank you : )