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