Crate futures_task
source ·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;
Modules§
Structs§
- A custom trait object for polling futures, roughly akin to
Box<dyn Future<Output = T> + Send + 'a>
. - A custom trait object for polling futures, roughly akin to
Box<dyn Future<Output = T> + 'a>
. - An error that occurred during spawning.
- A
Waker
that is only valid for a given lifetime.
Traits§
- A way of waking up a specific task.
- The
Spawn
trait allows for pushing futures onto an executor that will run them to completion. - A custom implementation of a future trait object for
FutureObj
, providing a vtable with drop support.