Crate futures_task

source ·
Expand description

Tools for working with tasks.

Re-exports§

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.

Traits§

  • The LocalSpawn is similar to Spawn, but allows spawning futures that don’t implement Send.
  • 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.

Functions§

  • Create a new Waker which does nothing when wake() is called on it.
  • Get a static reference to a Waker which does nothing when wake() is called on it.