Properties
Readonly
reject
reject: ((this, reason?) => void)
Type declaration
-
- (this, reason?): void
-
Parameters
-
this: void
-
Optional
reason: unknown
Returns void
Readonly
resolve
resolve: ((this, resolution) => void)
Type declaration
-
- (this, resolution): void
-
Parameters
-
this: void
-
resolution: T | PromiseLike<T>
Returns void
Readonly
whenDone
whenDone: ((this) => Promise<T>)
Type declaration
-
- (this): Promise<T>
-
Returns Promise<T>
Resulting promise.
A resolver of promise that can be created later or not created at all.
Creates the promise only on demand.
The methods of this object do not require
this
context and can be called as functions.