Mall
Bun

method

$.ShellPromise.all

static all<T extends [] | readonly unknown[]>(
values: T
): Promise<{ [K in string | number | symbol]: Awaited<T[P<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.

@param values

An array of Promises.

@returns

A new Promise.