Module mogwai::future

source ·
Expand description

Re-exports of the futures_lite crate, along with extensions and helper types.

Structs

Traits

Functions

  • Returns the result of the future that completes first, preferring future1 if both are ready.
  • Creates a future that is always pending.
  • Creates a future from a function returning Poll.
  • Polls a future just once and returns an Option with the result.
  • Creates a future that resolves to the provided value.
  • Joins two fallible futures, waiting for both to complete or one of them to error.
  • Wakes the current task and returns Poll::Pending once.
  • Joins two futures, waiting for both to complete.