Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CancellableResolvablePromise<T, E>

Type parameters

  • T

  • E

Hierarchy

Implements

Index

Constructors

constructor

Properties

__@toStringTag

__@toStringTag: "Promise" = "Promise"

cancel

cancel: function

Type declaration

    • (reason?: undefined | string): void
    • Parameters

      • Optional reason: undefined | string

      Returns void

cancelled

cancelled: boolean

resolve

resolve: Resolve<T>

Accessors

isCancelled

  • get isCancelled(): boolean

Methods

Protected Optional callbacks

  • callbacks(resolve: Resolve<T>): void

catch

  • catch<R>(reject?: OnRejected<R, E>): ICancellablePromise<T | R, E>

finally

  • finally(callback?: OnFinally): ICancellablePromise<T, E>

then

Static reject

  • reject<ST, SE>(error: SE): ICancellablePromise<ST, SE>

Static resolve

  • resolve<ST, SE>(value?: ST): ICancellablePromise<ST, SE>