pub fn wait_until<F>(predicate: F, timeout_ms: u64) -> ProbarResult<()>where F: Fn() -> bool,
Wait for a condition with default options