fcf.Actions class
Package: fcf-framework-core
File: fcf-framework-core:fcf.js
Available from version: 2.0.2
The class of asynchronous operations is similar to
Detailed description
The main distinguishing feature is that the class
let actions = new fcf.Actions();
await
Output:
Step 001
Step 002: Hello world
Methods
- Constructor
- Adds a handler function to the processing queue
- Iterates over the passed object, calling a separate a_cb handler for each element of the object, which is added to the shared task queue. The iterable object can be passed to a function that returns the iterable object. In this case, the object acquisition will be performed immediately before the handler function is executed.
- Iterates over the passed object, calling a separate a_cb handler for each element of the object, the handlers for the passed set being executed simultaneously asynchronously. The iterable object can be passed to a function that returns the iterable object. In this case, the object acquisition will be performed immediately before the handler function is executed.
- Adds an error handler that is called when an exception occurs or the fcf.Actions.Act.error () method is called in a deferred action.
- Adds a callback to the run queue that is also called will be called on error
- Changes the fcf.Actions object from the pending state to the running state. To use a method, the deferred flag must be set on the object.
- Throws an exception if the object of actions is in a state of error
- Returns the Promise object queued for execution