Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/grm/deps.ts>CancellablePromise.all

MTProto API Client for Deno 🦕
Go to Latest
method CancellablePromise.all
Re-export
import { CancellablePromise } from "https://deno.land/x/grm@0.8.0/deps.ts";

Analogous to Promise.all.

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10

Parameters

values: readonly
[
T1 | PromiseLike<T1>,
T2 | PromiseLike<T2>,
T3 | PromiseLike<T3>,
T4 | PromiseLike<T4>,
T5 | PromiseLike<T5>,
T6 | PromiseLike<T6>,
T7 | PromiseLike<T7>,
T8 | PromiseLike<T8>,
T9 | PromiseLike<T9>,
T10 | PromiseLike<T10>,
]

an array that may contain CancellablePromises, promises, thenables, and resolved values

Returns

a [[CancellablePromise]], which, if canceled, will cancel each of the promises passed in to CancellablePromise.all.

Analogous to Promise.all.

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9

Parameters

values: readonly
[
T1 | PromiseLike<T1>,
T2 | PromiseLike<T2>,
T3 | PromiseLike<T3>,
T4 | PromiseLike<T4>,
T5 | PromiseLike<T5>,
T6 | PromiseLike<T6>,
T7 | PromiseLike<T7>,
T8 | PromiseLike<T8>,
T9 | PromiseLike<T9>,
]

an array that may contain CancellablePromises, promises, thenables, and resolved values

Returns

a [[CancellablePromise]], which, if canceled, will cancel each of the promises passed in to CancellablePromise.all.

Analogous to Promise.all.

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8

Parameters

values: readonly
[
T1 | PromiseLike<T1>,
T2 | PromiseLike<T2>,
T3 | PromiseLike<T3>,
T4 | PromiseLike<T4>,
T5 | PromiseLike<T5>,
T6 | PromiseLike<T6>,
T7 | PromiseLike<T7>,
T8 | PromiseLike<T8>,
]

an array that may contain CancellablePromises, promises, thenables, and resolved values

Returns

a [[CancellablePromise]], which, if canceled, will cancel each of the promises passed in to CancellablePromise.all.

Analogous to Promise.all.

Type Parameters

T1
T2
T3
T4
T5
T6
T7

Parameters

values: readonly
[
T1 | PromiseLike<T1>,
T2 | PromiseLike<T2>,
T3 | PromiseLike<T3>,
T4 | PromiseLike<T4>,
T5 | PromiseLike<T5>,
T6 | PromiseLike<T6>,
T7 | PromiseLike<T7>,
]

an array that may contain CancellablePromises, promises, thenables, and resolved values

Returns

a [[CancellablePromise]], which, if canceled, will cancel each of the promises passed in to CancellablePromise.all.

Analogous to Promise.all.

Type Parameters

T1
T2
T3
T4
T5
T6

Parameters

values: readonly
[
T1 | PromiseLike<T1>,
T2 | PromiseLike<T2>,
T3 | PromiseLike<T3>,
T4 | PromiseLike<T4>,
T5 | PromiseLike<T5>,
T6 | PromiseLike<T6>,
]

an array that may contain CancellablePromises, promises, thenables, and resolved values

Returns

a [[CancellablePromise]], which, if canceled, will cancel each of the promises passed in to CancellablePromise.all.

Analogous to Promise.all.

Type Parameters

T1
T2
T3
T4
T5

Parameters

values: readonly
[
T1 | PromiseLike<T1>,
T2 | PromiseLike<T2>,
T3 | PromiseLike<T3>,
T4 | PromiseLike<T4>,
T5 | PromiseLike<T5>,
]

an array that may contain CancellablePromises, promises, thenables, and resolved values

Returns

a [[CancellablePromise]], which, if canceled, will cancel each of the promises passed in to CancellablePromise.all.

Analogous to Promise.all.

Parameters

values: readonly
[
T1 | PromiseLike<T1>,
T2 | PromiseLike<T2>,
T3 | PromiseLike<T3>,
T4 | PromiseLike<T4>,
]

an array that may contain CancellablePromises, promises, thenables, and resolved values

Returns

a [[CancellablePromise]], which, if canceled, will cancel each of the promises passed in to CancellablePromise.all.

Analogous to Promise.all.

Parameters

values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>, T3 | PromiseLike<T3>]

an array that may contain CancellablePromises, promises, thenables, and resolved values

Returns

a [[CancellablePromise]], which, if canceled, will cancel each of the promises passed in to CancellablePromise.all.

Analogous to Promise.all.

Parameters

values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<T2>]

an array that may contain CancellablePromises, promises, thenables, and resolved values

Returns

a [[CancellablePromise]], which, if canceled, will cancel each of the promises passed in to CancellablePromise.all.

Analogous to Promise.all.

Parameters

values: readonly (T | PromiseLike<T>)[]

an array that may contain CancellablePromises, promises, thenables, and resolved values

Returns

a [[CancellablePromise]], which, if canceled, will cancel each of the promises passed in to CancellablePromise.all.