Back to Browse

Promises and the allSettled Method

6.3K views
Dec 1, 2020
7:41

In 2019, a new method was added to the Promise object - allSettled. The method lets us run some code when the results of a collection of Promises have all been determined, regardless of whether or not they were resolved or rejected. Code from video: https://gist.github.com/prof3ssorSt3v3/26c858a2a2ae9c34c302639a80b636be CanIUse reference: https://caniuse.com/mdn-javascript_builtins_promise_allsettled

Download

0 formats

No download links available.

Promises and the allSettled Method | NatokHD