Module task

Source
Expand description

Task spawning support.

Structs§

Scheduler
A task scheduler for a TaskQueue.
TaskData
Information about a task.
TaskList
A list of tasks.
TaskMetadata
Metadata about a spawned task.
TaskQueue
A queue of tasks that will be run on a single thread.

Enums§

TaskState
The state of a task.

Traits§

Schedule
Trait for scheduling a task on an executor.
Spawn
Trait for spawning a task on an executor.
SpawnLocal
Trait for spawning a non-Send task on an executor.

Functions§

task_queue
Creates a new task queue and associated scheduler.
with_current_task_metadata
Calls f with the current task metadata, if there is a current task.

Type Aliases§

Runnable
A handle to a task that’s ready to run.
Task
A handle to a task.