pub fn until_true<F: FnMut() -> bool + Unpin>(f: F) -> impl Future<Output = ()>
Convert a function that returns bool into a valid but inefficient future. The future will resolve only when the function returns true.