Object fulfilling the promise.
Returns a self-reference or a new Promise object.
|onResolve *||—|| |
Handler function that is called if the promise was fulfilled.
|onReject *||—|| |
Handler function that is called if the promise was not fulfilled (an error occurred).
* Mandatory parameter/option.