pub fn wait_until(timeout: Duration, what: &str, check: impl FnMut() -> bool)
Poll check until it returns true or timeout elapses; panics with what on timeout.
check
true
timeout
what