import { CancellablePromise } from "https://deno.land/x/grm@0.8.0/deps.ts";
Creates a CancellablePromise
that is resolved with an array of results
when all of the provided Promises
resolve or reject.
Parameters
values: T
An array of Promises
.
Returns
CancellablePromise<-readonly [P in keyof T]: PromiseSettledResult<T[P] extends PromiseLike<infer U> ? U : T[P]>>
A new CancellablePromise
.
Creates a CancellablePromise
that is resolved with an array of results
when all of the provided Promise
s resolve or reject.
Parameters
values: Iterable<T>
An array of Promise
s.
Returns
CancellablePromise<PromiseSettledResult<T extends PromiseLike<infer U> ? U : T>[]>
A new CancellablePromise
. Canceling it cancels all of the input
promises.