Skip to main content

and

Function and 

Source
pub fn and<I, F>(args: I) -> impl Future<Output = bool> + Send
where I: Iterator<Item = F> + Send, F: Future<Output = bool> + Send,
Expand description

Computes the conjunction of an iterator of Boolean futures.

All inputs are polled concurrently and false short-circuits the operation. An empty iterator resolves to true.