Favorites

JavaScript Promise.allSettled() Method

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee
Promise.allSettled()
JavaScript Promise Static methodThis method is supported by all modern browsers.
Updated 28th November 2026

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

Promise.allSettled([
  Promise.resolve('saved'),
  Promise.reject(new Error('timeout')),
]).then(results => {
  results.forEach(r => console.log(r.status, r.value ?? r.reason.message));
});

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.

This method is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee