IPromiseProvider
Object fulfilling the promise.
Constructor
IPromiseProvider()
Methods
Name |
Returns |
Description |
Returns a self-reference or a new Promise object. |
Methods details
then
{IPromiseProvider} then(onResolve, onReject)
Returns a self-reference or a new Promise object.
Parameters:
Parameter |
Default value |
Description |
— |
Type: Function Handler function that is called if the promise was fulfilled. |
|
— |
Type: Function Handler function that is called if the promise was not fulfilled (an error occurred). |
* Mandatory parameter/option.
Mandatory parameter/option.