Call the function after a promise is rejected.
The function which will be executed when a promise is rejected. This has a single parameter, the rejection reason. The return value will be passed to the next callback function.
An IPromise equivalent to the value returned by onFulfilled/onRejected after being passed.
Call the function after a promise is fulfilled or rejected.
The function which will be executed when a promise is fulfilled. This has a single parameter, the fulfillment value. If a value is returned, it will be passed to the next callback function. If no value is returned, the original value will be passed.
The function which will be executed when a promise is rejected. This has a single parameter, the rejection reason. If a value is returned, it will be passed to the next callback function. If no value is returned, the original value will be passed.
An IPromise equivalent to the value you return from onFulfilled/onRejected after being passed.
Defines the interface of promise which is used for asynchronous calling.