Deferred class

Constructors

Deferred()

Properties

promise
reject
resolve
state

Constructor Details

Deferred()

new Deferred()

Property Details

promise

promise: () => Promise<T>

Property Value

() => Promise<T>

reject

reject: (error: string) => Deferred<T>

Property Value

(error: string) => Deferred<T>

resolve

resolve: (result: T) => Deferred<T>

Property Value

(result: T) => Deferred<T>

state

state: () => PromiseState

Property Value

() => PromiseState