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
allocA type representingBoxstorage of a task - Builds a new
Taskprior to spawning it. - The context of an asynchronous task.
- Errors returned by awaiting a
JoinHandle. - An owned permission to join a task (await its termination).
- A task.
- A unique identifier for a running task.
- A type-erased, reference-counted pointer to a spawned
Task. - A
Wakeris a handle for waking up a task by notifying its executor that it is ready to be run.
Enums§
- Indicates whether a value is available or if the current task has been scheduled to receive a wakeup instead.
Traits§
- A trait representing a heap allocation that can own a
Task.