← Back to release summary

Promise.allSettled

Category
JavaScript
Type
New or changed feature
Status
Enabled by default (Chrome 76)
Intent stage
Start prototyping

Summary

Adds Promise.allSettled(), which returns a promise that is fulfilled with an array of promise state snapshots, but only after all the original promises have settled, in other words after it has either fulfilled or rejected.

Motivation

https://github.com/tc39/proposal-promise-allSettled#overview-and-motivation

Standards & signals

Docs: https://v8.dev/features/promise-combinators#promise.allsettled

Explainers: https://v8.dev/features/promise-combinators#promise.allsettled

View on chromestatus.com