How to Use Promise.allSettled()

added by JavaScript Kicks
8/4/2021 2:43:48 PM

1261 Views

Promise.allSettled(promises) is a helper function that runs promises in parallel and aggregates the settled statuses (either fulfilled or rejected) into a result array. Let's see how Promise.allSettled() works. Promise.allSettled() is useful to perform independent async operations in parallel, and collect the result of these operations.


0 comments