fcf.ActionsQueue class
Package: fcf-framework-core
File: fcf.js
Available from version: 2.0.16
A class for managing queues of asynchronous tasks and grouping them. It allows for coordinating the execution of multiple threads, ensuring synchronization between them and the ability to wait for entire groups of tasks to complete.
Detailed description
- Queue Management: Obtain an
fcf.Actions object for sequentially adding tasks. - Task Grouping: Create named groups of asynchronous actions.
- Group Synchronization: Wait for all tasks in a specific group to complete without blocking other groups.
- Append Modes: Support for adding new tasks to an existing group (append mode) or creating a new group.
Methods
- The getActions method returns an fcf.Actions object that manages the current task queue. It ensures sequential execution of tasks by chaining new actions to the completion of all previously scheduled operations in the queue and automatically triggers the execution of accumulated completion callbacks.
- The getAsyncActions method allows grouping asynchronous tasks into named streams within a queue. It provides synchronization: the execution of the entire queue will be suspended until all tasks in the specified group have completed. The getAsyncActions method allows grouping asynchronous tasks into named streams within a queue. It provides synchronization: the execution of the entire queue will be suspended until all tasks in the specified group have completed.
VPSDime is an industry leading VPS hosting company that provides virtualized server services with high performance, availability and friendly support.