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 + Unpin,
Expand description

Computes the disjunction of an iterator of Boolean futures.

All inputs are polled concurrently and true short-circuits the operation. False is returned only after every input resolves to false.

ยงPanics

Panics when the iterator contains no futures.