Function pseudoCancellable

  • Takes in a regular Promise and returns a CancellablePromise. If canceled, the CancellablePromise will immediately reject with a Cancellation, but the asynchronous operation will not truly be aborted.

    Analogous to make-cancellable-promise.

    Type Parameters

    • T

    Parameters

    • promise: PromiseLike<T>

    Returns CancellablePromise<T>

Generated using TypeDoc