Skip to main content

poll_until

Function poll_until 

Source
pub fn poll_until(wait: Duration, ready: impl FnMut() -> bool) -> bool
Expand description

Poll ready every 100 ms until it holds (true) or wait elapses (false). Checks before the first sleep.