Type Parameters

  • T = any

Hierarchy (View Summary)

Constructors

  • Type Parameters

    • T = any

    Parameters

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

    Returns CancelablePromise<T>

Properties

"[toStringTag]": string
all: <T_1 extends [] | readonly unknown[]>(
    values: T_1,
) => CancelablePromise<
    { -readonly [P in string
    | number
    | symbol]: Awaited<T_1[P<P>]> },
>
allSettled: {
    <T_1 extends [] | readonly unknown[]>(
        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 extends [] | readonly unknown[]>(
        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 extends [] | readonly unknown[]>(
    values: T_1,
) => CancelablePromise<Awaited<T_1[number]>>
reject: <T_1 = never>(reason?: any) => CancelablePromise<T_1>
resolve: {
    (): CancelablePromise<void>;
    <T_1>(
        value: T_1 | PromiseLike<T_1> | CancelablePromise<T_1>,
    ): CancelablePromise<T_1>;
}

Methods