Crate transpose_future

Crate transpose_future 

Source
Expand description

Transpose Result/Option of Future to Future of Result/Option.

For collections of multiple elements use join instead.

let x: Option<i32> = Some(async {5}).transpose().await;

Structs§

TransposedOption
TransposedResult

Traits§

TransposeFuture