TaskState
Represents the current lifecycle state of a background task.
State machine:
[Scheduled] → [Running] → [Success]
↘ [Failed]
↘ [TimedOut] (task exceeded KmpWorkerConfig.taskTimeout)
[Scheduled] → [Cancelled] (before execution begins)Content copied to clipboard
Inheritors
Types
Link copied to clipboard
Task was explicitly cancelled via KmpWorker.cancel. No retry will occur after cancellation.