finally() method from fcf.Actions class
Package: fcf-framework-core
File: fcf-framework-core:fcf.js
Available from version: 2.0.2
Adds a callback to the run queue that is also called will be called on error
To determine if an error has occurred, you can use the
When the handler is called, when an error occurs, the exceptions thrown from the handler are not processed and go outside.
A handler function can have two formats:
-
mixed a_cb(mixed a_lastResult) - Format without confirmation of completion of the operation. The function can be asynchronous. The execution of the next handler begins after the function has completed or thePromise orfcf.Actions object it returned has completed. -
mixed a_cb(mixed a_lastResult,fcf.Actions.Act a_act) - Format with confirmation of completion of the operation. To complete an asynchronous operation, the handler function must call thefcf.Actions.Act.complete () method orfcf.Actions.Act.error () on an error. The result passed to thefcf.Actions.Act.complete () function call will be passed to the next handler.
Output: