Expand description
Tools for working with tasks.
Re-exports§
pub use core::task::Context;pub use core::task::Poll;pub use core::task::RawWaker;pub use core::task::RawWakerVTable;pub use core::task::Waker;
Structs§
- Future
Obj  - A custom trait object for polling futures, roughly akin to
Box<dyn Future<Output = T> + Send + 'a>. - Local
Future Obj  - A custom trait object for polling futures, roughly akin to
Box<dyn Future<Output = T> + 'a>. - Spawn
Error  - An error that occurred during spawning.
 
Traits§
- Local
Spawn  - The 
LocalSpawnis similar toSpawn, but allows spawning futures that don’t implementSend. - Spawn
 - The 
Spawntrait allows for pushing futures onto an executor that will run them to completion. - Unsafe
Future Obj  - A custom implementation of a future trait object for 
FutureObj, providing a vtable with drop support. 
Functions§
- noop_
waker  - Create a new 
Wakerwhich does nothing whenwake()is called on it. - noop_
waker_ ref  - Get a static reference to a 
Wakerwhich does nothing whenwake()is called on it.