[−][src]Module futures_util::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.
Re-exports
pub use core::task::Context; | 
pub use core::task::Poll; | 
pub use core::task::Waker; | 
pub use core::task::RawWaker; | 
pub use core::task::RawWakerVTable; | 
Structs
| AtomicWaker | A synchronization primitive for task wakeup.  | 
| FutureObj | A custom trait object for polling futures, roughly akin to
  | 
| LocalFutureObj | A custom trait object for polling futures, roughly akin to
  | 
| SpawnError | An error that occurred during spawning.  | 
| WakerRef | A   | 
Traits
| ArcWake | A way of waking up a specific task.  | 
| LocalSpawn | The   | 
| LocalSpawnExt | Extension trait for   | 
| Spawn | The   | 
| SpawnExt | Extension trait for   | 
| UnsafeFutureObj | A custom implementation of a future trait object for   | 
Functions
| noop_waker | Create a new   | 
| noop_waker_ref | Get a static reference to a   | 
| waker | Creates a   | 
| waker_ref | Creates a reference to a   |