pub fn shl<Lhs: Shl<Rhs>, Rhs>( lhs: impl Future<Output = Lhs>, rhs: impl Future<Output = Rhs>, ) -> impl Future<Output = Lhs::Output>
Returns a Future that will concurrently resolve given Futures and shl their results.
Future
Futures
shl
use futures_executor::block_on; use async_ops::shl; let a = async { 42 }; let b = async { 2 }; let result = async { shl(a, b).await }; assert_eq!(std::ops::Shl::shl(42, 2), block_on(result));