Type Parameters

  • T = any

Hierarchy (view full)

Constructors

  • Type Parameters

    • T = any

    Parameters

    • __namedParameters: {
          executor?: ((resolve: ((value: T | PromiseLike<T>) => void), reject: ((reason?: any) => void), onCancel: ((cancelHandler: (() => void)) => void)) => void);
          internals?: Internals;
          promise?: Promise<T>;
      }
      • Optionalexecutor?: ((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

      • Optionalinternals?: Internals
      • Optionalpromise?: Promise<T>

    Returns CancelablePromiseInternal<T>

Properties

[toStringTag]: string

Methods

  • Returns void

  • Parameters

    • Optionalonfinally: null | (() => void)
    • OptionalrunWhenCanceled: boolean

    Returns CancelablePromise<T>

  • Returns boolean