2025
1 featuresThe Promise.try() static method returns a promise that takes a callback of any kind (returns or throws, synchronously or asynchronously) and wraps its result in a Promise.
2024
1 featuresThe Promise.withResolvers() static method is an alternative to the Promise() constructor that returns both the promise and resolution functions. You can use this to access resolve and reject outside the scope of the executor function.
2020
2 featuresThe Promise.any() static method returns a promise that fulfills as soon as the first of an iterable of promises fulfills, with that promise's value. Otherwise, it rejects with an AggregateError when all of the promises have rejected.
The Promise.allSettled() static method waits for an array of promises to settle (resolve or reject).
2018
1 featuresThe promise finally() method executes a function when the promise settles (resolves or rejects).
2015
1 featuresA promise represents an asynchronous operation which eventually succeeds or fails.