pub fn poll_until<F>(timeout: Duration, delay: Duration, f: F) -> Result<()>Expand description
Poll some operation until it returns true or a timeout is hit.
The provided function should return Some(x) when the condition is met,
or None to continue polling.
delay can be used to prevent retrying the operation too frequently.