Function cargo_test_support::retry

source ยท
pub fn retry<F, R>(n: u32, f: F) -> R
where F: FnMut() -> Option<R>,
Expand description

Helper to retry a function n times.

The function should return Some when it is ready.