[−][src]Module futures::task
Tools for working with tasks.
This module contains:
Spawn
, a trait for spawning new tasks.Context
, a context of an asynchronous task, including a handle for waking up the task.Waker
, a handle for waking up a task.
The remaining types and traits in the module are used for implementing executors or dealing with synchronization issues around task wakeup.
Structs
AtomicWaker | A synchronization primitive for task wakeup. |
Context | Experimental The |
RawWaker | Experimental A |
RawWakerVTable | Experimental A virtual function pointer table (vtable) that specifies the behavior
of a |
SpawnError | An error that occurred during spawning. |
Waker | Experimental A |
WakerRef | A |
Enums
Poll | Experimental Indicates whether a value is available or if the current task has been scheduled to receive a wakeup instead. |
Traits
ArcWake | A way of waking up a specific task. |
LocalSpawn | The |
LocalSpawnExt | Extension trait for |
Spawn | The |
SpawnExt | Extension trait for |
Functions
noop_waker | Create a new |
noop_waker_ref | Get a thread local reference to a
|
waker_ref |