Skip to main content

until_true

Function until_true 

Source
pub fn until_true<F: FnMut() -> bool + Unpin>(f: F) -> impl Future<Output = ()>
Expand description

Convert a function that returns bool into a valid but inefficient future. The future will resolve only when the function returns true.