TaskState

The state of a task.

Values

Name

Description

Value

TaskState.CANCELLED

Task was cancelled (either before it ran or during execution

1700029292

TaskState.CANCELLING

Task was signalled to cancel but did not stop yet

1700029281

TaskState.COMPLETED

Task completed execution (successfully or with errors)

1700029296

TaskState.QUEUED

Task was queued and is waiting to be scheduled for execution

1699837285

TaskState.RUNNING

Task is running

1700033141

TaskState.WAITING

Task is waiting

1700225396

Object of

BackgroundTask.status

Return

Application.waitForAllTasks()

BackgroundTask.waitForTask()