Crate async_macros

Source
Expand description

Macros for async-std.

§Examples

use async_macros::join;
use futures::future;

let a = future::ready(1u8);
let b = future::ready(2u8);

assert_eq!(join!(a, b).await, (1, 2));

Modules§

  • Helper re-exports for use in macros.

Macros§

  • Awaits multiple futures simultaneously, returning all results once complete.
  • Combines multiple streams into a single stream of all their outputs.
  • Extracts the successful type of a Poll<T>.
  • Waits for either one of several similarly-typed futures to complete.
  • Awaits multiple fallible futures simultaneously, returning all results once complete.
  • Waits for either one of several similarly-typed futures to complete.

Structs§

Enums§