Deferred class

Constructors

Deferred()

Properties

promise
reject
resolve

Constructor Details

Deferred()

new Deferred()

Property Details

promise

Promise<T> promise

Property Value

Promise<T>

reject

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

Property Value

(error: string) => Deferred<T>

resolve

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

Property Value

(result: T | Promise<T>) => Deferred<T>