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