finally
Tells CancellablePromise what callback to call when the inner promise either succeeds or fails.
Declaration
CancellablePromise finally(
Function? onfinally
);Parameters
- onfinally:
An optional function
CancellablePromisecalls when the inner promise succeeds or fails.
Discussion
If you provide a function for the onfinally parameter, CancellablePromise calls that function after the promise succeeds or fails.