Function retry::retry
[−]
[src]
pub fn retry<F, G, R>(tries: u64,
wait: u64,
value_fn: F,
condition_fn: G)
-> Result<R, RetryError> where F: FnMut() -> R, G: FnMut(&R) -> bool
Invokes a function a certain number of times or until a condition is satisfied with a fixed wait after each unsuccessful try.