netstack_testing_common

Function try_all

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

Returns true if the stream only yields true.

If the stream never yields false or never terminates, try_all may never resolve.