Class CancellablePromise<T>

Cancellable promise

Type Parameters

  • T

Hierarchy

  • CancellablePromise

Constructors

Properties

cancelled: boolean

True if cancelled

onCancelHandler: (() => void)

Type declaration

    • (): void
    • Returns void

reject: ((e) => void)

Type declaration

    • (e): void
    • Parameters

      • e: Error

      Returns void

resolve: ((t) => void)

Type declaration

    • (t): void
    • Parameters

      • t: T

      Returns void

Methods

Generated using TypeDoc