Promise.allSettled()
Promise.allSettled() is a JavaScript method in the Promise category. Waits for all promises to settle (resolve or reject). The syntax is Promise.allSettled(iterable). A typical example: Promise.allSettled([Promise.resolve(1), Promise.reject(2)]). A close sibling is Promise.prototype.then(), which attaches handlers for the resolved value. A close sibling is Promise.prototype.catch(), which attaches a handler for rejection. A close sibling is Promise.prototype.finally(), which attaches a handler that runs regardless of outcome. A close sibling is Promise.resolve(), which returns a Promise resolved with the given value. More about this category: Promise methods for async operations — then, all, race, and more. Related Promise methods: Promise.prototype.then(), Promise.prototype.catch(), Promise.prototype.finally(), Promise.resolve(), Promise.reject(), Promise.all(), Promise.race(), Promise.any(). This page is part of the free JS Reference documentation covering 1027+ methods, each with syntax, parameters, return values, examples, and common pitfalls. You can try Promise.allSettled() immediately in the JavaScript playground, look up unfamiliar terms in the glossary, or return to the JS Reference homepage.