Skip to main content

and5

Function and5 

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

Computes the conjunction of five Boolean futures.

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