Create a new background task
url to the resource that will create the task
task specific data
OptionalcancelAction: booleantrue to allow task creation to be cancelled
Optionalmessage: stringnotification message to display before the task is created instead of the default one
a promise that resolves to the id of the task if it was created successfully
Get status about specific tasks
the ids of the tasks to check
a promise that resolves to the status about the tasks
Subscribe to state changes with optional transformation and filtering.
The subscription will immediately invoke the callback with the current state (if any), then continue to call it whenever the state changes. The map and filter options allow you to transform and selectively receive updates.
Function called with state updates (after map/filter applied)
Optionaloptions: StateOptionsOptional transformations and filters for the subscription
Unsubscribe function - call this to stop receiving updates
Service for creating background tasks