Crate futures_util

source ·
Expand description

Combinators and utilities for working with Futures, Streams, Sinks, and the AsyncRead and AsyncWrite traits.

Re-exports§

Modules§

  • Asynchronous values.
  • This module contains the Never type.
  • Asynchronous sinks.
  • Asynchronous streams.
  • Tools for working with tasks.

Macros§

  • Polls multiple futures simultaneously, returning a tuple of all results once complete.
  • A macro which yields to the event loop once.
  • Pins a value on the stack.
  • A macro which returns the result of polling a future once within the current async context.
  • Extracts the successful type of a Poll<T>.
  • Polls multiple futures and streams simultaneously, executing the branch for the future that finishes first. Unlike select!, if multiple futures are ready, one will be selected in order of declaration. Futures directly passed to select_biased! must be Unpin and implement FusedFuture.
  • Polls multiple futures simultaneously, resolving to a Result containing either a tuple of the successful outputs or an error.