StoppablePromise<T>: Promise<T> & {
    stop: (() => void);
}

A promise type that has an additional stop method that will stop the async operation and make the promise reject.

Type Parameters

  • T