Create a new background task
a promise that resolves to the id of the task if it was created successfully
url to the resource that will create the task
task specific data
Optional
cancelAction: booleantrue to allow task creation to be cancelled
Optional
message: stringnotification message to display before the task is created instead of the default one
Get status about specific tasks
a promise that resolves to the status about the tasks
the ids of the tasks to check
Subscribe to state changes
unsubscribe callback
function to call when subscription updates
Rest
...args: unknown[]Optional
options: StateOptionsoptions for the state selector
Subscribe to state changes
unsubscribe callback
Service for creating background tasks