Type Parameters

  • T = any

Hierarchy (view full)

Constructors

  • Type Parameters

    • T = any

    Parameters

    • executor: ((resolve: ((value: T | PromiseLike<T>) => void), reject: ((reason?: any) => void), onCancel: ((cancelHandler: (() => void)) => void)) => void)
        • (resolve, reject, onCancel): void
        • Parameters

          • resolve: ((value: T | PromiseLike<T>) => void)
          • reject: ((reason?: any) => void)
              • (reason?): void
              • Parameters

                • Optionalreason: any

                Returns void

          • onCancel: ((cancelHandler: (() => void)) => void)
              • (cancelHandler): void
              • Parameters

                • cancelHandler: (() => void)
                    • (): void
                    • Returns void

                Returns void

          Returns void

    Returns CancelablePromise<T>

Properties

[toStringTag]: string
all: (<T_1>(values: T_1) => CancelablePromise<{
    -readonly [P in string | number | symbol]: Awaited<T_1[P<P>]>
}>)
allSettled: {
    <T_1>(values: T_1): CancelablePromise<{
        -readonly [P in string | number | symbol]: PromiseSettledResult<Awaited<T_1[P<P>]>>
    }>;
    <T_2>(values: Iterable<T_2 | PromiseLike<T_2> | CancelablePromise<T_2>, any, any>): CancelablePromise<PromiseSettledResult<Awaited<T_2>>[]>;
}
any: {
    <T_1>(values: T_1): CancelablePromise<Awaited<T_1[number]>>;
    <T_2>(values: Iterable<T_2 | PromiseLike<T_2> | CancelablePromise<T_2>, any, any>): CancelablePromise<Awaited<T_2>>;
}
isCancelable: ((promise: any) => boolean)
race: (<T_1>(values: T_1) => CancelablePromise<Awaited<T_1[number]>>)
reject: (<T_1>(reason?: any) => CancelablePromise<T_1>)
resolve: {
    (): CancelablePromise<void>;
    <T_1>(value: T_1 | PromiseLike<T_1> | CancelablePromise<T_1>): CancelablePromise<T_1>;
}

Methods