pub fn loop_timeout_panic<T>( timeout: Duration, f: impl FnMut() -> Option<T>, ) -> T
Invokes a function repeatedly until it yields true; if a timeout is reached, the function will panic