Interface CancellablePromise

Type for a promise that is cancellable

interface CancellablePromise {
    cancel: (() => void);
    promise: ExtendablePromise<any>;
}

Properties

Properties

cancel: (() => void)

Type declaration

    • (): void
    • Returns void

promise: ExtendablePromise<any>