Variable DeterministicPromiseConst
DeterministicPromise: {
all: <T extends readonly unknown[] | []>(
values: T,
) => Promise<
{ -readonly [P in string
| number
| symbol]: Awaited<T[P<P>]> },
>;
race: <T extends readonly unknown[] | []>(values: T) => Promise<unknown>;
} = ...
Type declaration
all: <T extends readonly unknown[] | []>(
values: T,
) => Promise<
{ -readonly [P in string
| number
| symbol]: Awaited<T[P<P>]> },
>
race: <T extends readonly unknown[] | []>(values: T) => Promise<unknown>
Deterministic versions of Promise.all and Promise.race. Namely;
all()
rejecting, orrace()
with multiple promises), then it would return the first element that it is resolved or rejected with.