Task
interface Task
A task that can be scheduled by the scheduler.
The task has three states:
Alive: The task is available for scheduling.
Paused: The task is not available for scheduling, but can be made available with resume.
Cancelled: The task is not available for scheduling, and cannot be made available.