The TaskManager is the common component responsible for managing running tasks.
Emit when a registered task is deleted.
each task has this unique task id, for this back-end
contains all running tasks
contains running tasks per context
Delete the given task from the task manager.
the task to delete.
Try to retrieve the registered task for the given id.
the task registration id.
the task or
undefined if no task was registered for the given id.
Returns all running tasks. If a context is provided, filter-down to only tasks started from that context.
the task execution context.
all running tasks for the given context or
undefined if no tasks are registered for the given context.
Is triggered on application stop to cleanup all ongoing tasks.
Registers a new task (in the given context if present). Each registered task is considered to be currently running.
the new task.
the provided context.
the registration id for the given task.