Creates a Promise that is resolved with an array of results when all of the provided Promises resolve or reject.
Symbol
PromiseConstructor.allSettled
allSettled<T extends readonly unknown[] | []>(values: T): Promise<{ [K in string | number | symbol]: PromiseSettledResult<Awaited<T[P<P>]>> }>
@param values
An array of Promises.
@returns
A new Promise.
Creates a Promise that is resolved with an array of results when all of the provided Promises resolve or reject.
@param values
An array of Promises.
@returns
A new Promise.