Function bitxor

Source
pub fn bitxor<Lhs: BitXor<Rhs>, Rhs>(
    lhs: impl Future<Output = Lhs>,
    rhs: impl Future<Output = Rhs>,
) -> impl Future<Output = Lhs::Output>
Expand description

Returns a Future that will concurrently resolve given Futures and bitxor their results.

ยงExample

use futures_executor::block_on;
use async_ops::bitxor;

let a = async { 42 };
let b = async { 2 };

let result = async {
  bitxor(a, b).await
};

assert_eq!(std::ops::BitXor::bitxor(42, 2), block_on(result));