Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Deferred<T>

Returns an object with a promise on the way and two methods, resolve() and reject(), to change its state.

see

Deferred object

Type parameters

  • T

    Data wrapped in the promise.

Hierarchy

  • Deferred

Index

Constructors

Properties

Constructors

constructor

Properties

promise

promise: Promise<T> = null

reject

reject: PromiseReject = null

Changes the state of the promise to rejected

see

Promise.reject()

resolve

resolve: PromiseResolve<T> = null

Changes the state of the promise to resolved

see

Promise.resolve()

Generated using TypeDoc