Function PromiseAllSettled
- PromiseAllSettled<T>(values: T): Promise<{ -readonly [ P in string | number | symbol]: PromiseSettledResult<Awaited<T[P]>> }>
-
Type Parameters
-
T extends [] | readonly unknown[]
Returns Promise<{ -readonly [ P in string | number | symbol]: PromiseSettledResult<Awaited<T[P]>> }>
- PromiseAllSettled<T>(values: Iterable<T | PromiseLike<T>>): Promise<PromiseSettledResult<Awaited<T>>[]>
-
Parameters
-
values: Iterable<T | PromiseLike<T>>
Returns Promise<PromiseSettledResult<Awaited<T>>[]>
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve or reject.
Returns
A new Promise.