Promise.allSettled and its own implementation/Polyfill. Asked in Amazon|Microsoft

Published: 13 January 2022
on channel: TechStorming
1,209
29

The Promise.allSettled() method returns a promise that resolves after all of the given promises have either fulfilled or rejected, with an array of objects that each describes the outcome of each promise.
It is typically used when you have multiple asynchronous tasks that are not dependent on one another to complete successfully, or you'd always like to know the result of each promise.

In comparison, the Promise returned by Promise.all() may be more appropriate if the tasks are dependent on each other / if you'd like to immediately reject upon any of them rejecting.

Linkedin:   / manish-mohan-profile  
GitHub code Link: https://github.com/mohanmanis/tutorials


00:00 introduction
00:35 Definition of Promise.allSettled
01:55 Example of Promise.allSettled
08:33 Polyfill of Promise.allSettled


Watch video Promise.allSettled and its own implementation/Polyfill. Asked in Amazon|Microsoft online without registration, duration hours minute second in high quality. This video was added by user TechStorming 13 January 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,20 once and liked it 2 people.