netstack_testing_common

Function try_any

Source
pub async fn try_any<S: Stream<Item = Result<bool>>>(stream: S) -> Result<bool>
Expand description

Returns true once the stream yields a true.

If the stream never yields true or never terminates, try_any may never resolve.