Creates a promise that is resolved using a generator that yields values or promises (somewhat similar to C#'s async keyword).
Represents a promise that iterates over many promises and invokes side-effect functions in the process.
Given an array of promises, return a promise that is fulfilled when all the items in the array are fulfilled.
Like some(), with 1 as count. However, if the promise fulfills, the fulfillment value is not an array of 1 but the value directly.
Given an iterator that yields promises or values, returns a promise that is fulfilled with a null value when the iterator has been consumed or the aggregate promise has been fulfilled or rejected.
Like each, but only allows a certain number of outstanding promises at any given time.
Like each_limit, but ensures that no promise in the given $iterable argument is rejected. If any promise is rejected, then the aggregate promise is rejected with the encountered rejection.
Synchronously waits on a promise to resolve and returns an inspection state array.
Waits on all of the provided promises, but does not unwrap rejected promises as thrown exception.
Creates a rejected promise for a reason if the reason is not a promise. If the provided reason is a promise, then it is returned as-is.
Returns a promise that is fulfilled when all of the provided promises have been fulfilled or rejected.
Initiate a competitive race between multiple promises or values (values will become immediately fulfilled promises).
Adds a function to run in the task queue when it is next
run() and returns
a promise that is fulfilled or rejected with the result.