Properties
Private _reject
_reject: function
Private _resolve
_resolve: function
Type declaration
-
- (value: T | PromiseLike<T>): void
-
Parameters
-
value: T | PromiseLike<T>
Returns void
promise
promise: Promise<T>
Methods
reject
- reject(reason: any): void
resolve
- resolve(value: T | PromiseLike<T>): void
-
Parameters
-
value: T | PromiseLike<T>
Returns void
A class which wraps a promise into a delegate object.
Notes
This class is useful when the logic to resolve or reject a promise cannot be defined at the point where the promise is created.