JavaScript Promise.allSettled() Method
The Promise.allSettled() static method waits for every promise to finish, whether it succeeds or fails, and reports the outcome of each one.
Description
The Promise.allSettled() static method returns a promise that fulfills when every input promise has settled, never rejecting. The result is an array of objects, each with status: 'fulfilled' and a value, or status: 'rejected' and a reason.
Use it when tasks are independent and you want to know how each one went, such as uploading several files and reporting which failed.
Because it never rejects, there's no need for a catch() on the combined promise; check each result's status instead. It's a good fit for "best effort" work, such as sending analytics to several endpoints or loading optional widgets, where one failure shouldn't stop the others from being used.
Syntax
Promise.allSettled(iterable)Parameters
- iterableAn iterable of promises or values.
Return Value
A promise that fulfills, once every input has settled, with an array of { status, value } or { status, reason } objects.
Example
Browser Support
The following information will show you the current browser support for the Promise.allSettled() method. Hover over a browser icon to see the version that first introduced support for this method.
Desktop





Tablets & Mobile





