Answers for "promise.all vs promise.allsettled"

0

promise.all vs promise.allsettled

Promise.all()
/*will reject as soon as one of the Promises in the array rejects.*/
Promise.allSettled()
/*
1-will never reject, it will resolve once all Promises in the array
have either rejected or resolved.
2- DONT NEED CATCH BLOCK */
Posted by: Guest on August-20-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language