Expand description
The maitake
task system.
This module contains the code that spawns tasks on a scheduler, and
manages the lifecycle of tasks once they are spawned. This includes the
in-memory representation of spawned tasks (the Task
type), and the
handle used by the scheduler and other components of the runtime to
reference a task once it is spawned (the TaskRef
type).
Structs§
- BoxStorage
- A type representing
Box
storage of a task - Builder
- Builds a new
Task
prior to spawning it. - Context
- The context of an asynchronous task.
- Join
Error - Errors returned by awaiting a
JoinHandle
. - Join
Handle - An owned permission to join a task (await its termination).
- Task
- A task.
- TaskId
- A unique identifier for a running task.
- TaskRef
- A type-erased, reference-counted pointer to a spawned
Task
. - Waker
- A
Waker
is a handle for waking up a task by notifying its executor that it is ready to be run.
Enums§
- Poll
- Indicates whether a value is available or if the current task has been scheduled to receive a wakeup instead.