fcf.Actions class
Type:
class fcf.Actions
Package: fcf-framework-core
File: 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.
- Returns true if the fcf.Actions object has no scheduled tasks (the stack is empty) and execution has not yet started. This allows determining whether the entire action chain is idle or still awaiting execution.
- 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 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
- The method adds a delay in the sequence of actions set in the a_milliseconds parameter.
VPSDime is an industry leading VPS hosting company that provides virtualized server services with high performance, availability and friendly support.