Skip to main content

and4

Function and4 

Source
pub fn and4(
    a: impl Future<Output = bool> + Send,
    b: impl Future<Output = bool> + Send,
    c: impl Future<Output = bool> + Send,
    d: impl Future<Output = bool> + Send,
) -> impl Future<Output = bool> + Send
Expand description

Computes the conjunction of four Boolean futures.

All four inputs are polled concurrently. The result is true only when every future resolves to true.