Creates a new TaskGroup.
Builder for creating the task group.
Arguments for the task group.
Name of the task group.
Execution mode (sequential or parallel).
List of tasks to be executed.
Protected
_flagsCurrent flags for the task group.
Protected
_progressProgress of the task group, represented as a value between 0 and 1.
Protected
_statusCurrent status of the task group.
Readonly
argsArguments for the task group.
Readonly
builderBuilder for creating the task group.
Protected
flowManages task execution and flow control.
Readonly
idUnique identifier for the task group.
Readonly
modeExecution mode (sequential or parallel).
Readonly
nameName of the task group.
Readonly
queryQuery interface for accessing tasks.
Current flags for the task group.
Updates the flags for the task group.
New set of flags to apply.
Progress of the task group, represented as a value between 0 and 1.
Updates the progress of the task group.
New progress value (0 to 1).
Current status of the task group.
Updates the status of the task group.
New status to set.
Retrieves all tasks managed by the task group.
Removes all listeners for all event types, as well as all global listeners.
The EventEmitter instance itself, allowing for method chaining.
Emits an event of a specific type, invoking all registered listeners for that event type with the provided data. Also calls any global event listeners with a GlobalEvent object.
Event type.
The identifier for the event type to emit.
The data to pass to the event listeners. The type of this data is defined by the corresponding value in TEvents.
The EventEmitter instance itself, allowing for method chaining.
Checks if the current status matches any of the provided statuses.
Array of statuses to check.
true
if the current status matches one of the provided statuses.
Removes a previously registered event listener for a specified event type. Use this method to unregister listeners when they are no longer needed, preventing potential memory leaks.
Event type.
The identifier for the event type from which to remove the listener.
The callback function to unregister.
The EventEmitter instance itself, allowing for method chaining.
Removes a previously registered global event listener.
The global event listener to remove.
The EventEmitter instance itself, allowing for method chaining.
Adds an event listener for a specified event type. This method allows you to specify which event you are interested in listening to and to provide a callback function that will be executed whenever that event is emitted.
Event type.
The identifier for the event type to listen for.
The callback function that will be called when the event is emitted.
The EventEmitter instance itself, allowing for method chaining.
Adds a global event listener that is called for every emitted event.
The global event listener to add.
The EventEmitter instance itself, allowing for method chaining.
Protected
setProtected
setSets the status of the task group.
Status to set.
Instance of the task group for chaining.
Represents a group of tasks that can be executed in different modes.