Skip to main content

or

Function or 

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

Computes the disjunction of an iterator of Boolean futures.

The first ready true output wins at any position in the iterator. Polling all inputs concurrently costs one allocation per input. An empty iterator resolves to false.