Class Deferred<T>
Type parameters
T
Hierarchy
- Deferred
Index
Constructors
constructor
Constructor for this deferred object.
Type parameters
T
Returns Deferred<T>
Properties
Readonly promiseSearch playground for promise
The promise associated with this deferred object.
Accessors
reject
The reject method of the promise associated with this deferred object.
Returns (reason?: any) => void
The reject method of the promise associated with this deferred object.
Parameters
Optional reason: any
Returns void
resolve
The resolve method of the promise associated with this deferred object.
Returns (value: T | PromiseLike<T>) => void
The resolve method of the promise associated with this deferred object.
Parameters
value: T | PromiseLike<T>
Returns void
Wrapper class for promise with external resolve and reject.