Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IAbortAblePromiseBase<T>

a promise like object that has an abort method

Type parameters

  • T

Hierarchy

  • PromiseLike<T>
    • IAbortAblePromiseBase

Index

Methods

Methods

abort

  • abort(): void

isAborted

  • isAborted(): boolean
  • whether this promise was aborted

    Returns boolean

then

  • then<TResult1, TResult2>(onfulfilled?: function | undefined | null, onrejected?: function | undefined | null): IAbortAblePromiseBase<TResult1 | TResult2>
  • Type parameters

    • TResult1

    • TResult2

    Parameters

    • Optional onfulfilled: function | undefined | null
    • Optional onrejected: function | undefined | null

    Returns IAbortAblePromiseBase<TResult1 | TResult2>