Struct async_ops::Rem [−][src]
pub struct Rem;
Expand description
A Binary
operation that will concurrently resolve two Futures
and rem
their results.
Example
use futures::executor::block_on;
use async_ops::Rem;
let a = async { 42 };
let b = async { 2 };
let result = async {
async_ops::on(a).op(Rem, b).await
};
assert_eq!(std::ops::Rem::rem(42, 2), block_on(result));
Trait Implementations
type Output = AsyncRem<Lhs, Rhs>
type Output = AsyncRem<Lhs, Rhs>
The resulting type after applying the binary operation.