Interface IAbortAblePromiseBase<T>

a promise like object that has an abort method

interface IAbortAblePromiseBase<T> {
    abort(): void;
    isAborted(): boolean;
    then<TResult1, TResult2>(onfulfilled?, onrejected?): IAbortAblePromiseBase<TResult1 | TResult2>;
}

Type Parameters

  • T

Hierarchy

  • PromiseLike<T>
    • IAbortAblePromiseBase

Methods

  • whether this promise was aborted

    Returns boolean