The logging service.
Special task types used for tracking all tasks and default tasks.
Default task type.
Completes a task and decrements the associated task counter. If the counter reaches 0, all corresponding callbacks are executed.
The function to execute when completing the task.
Optional
taskType: string = ...The type of task being completed.
Registers a callback to be executed when all pending tasks of the specified type are completed. If there are no pending tasks of the specified type, the callback is executed immediately.
The function to execute when no pending tasks remain.
Optional
taskType: string = ...The type of tasks to wait for completion.
A factory function to create
TaskTracker
instances.A
TaskTracker
tracks pending tasks (grouped by type) and notifies interested parties when all pending tasks (or tasks of a specific type) have been completed.