Function retry::retry [] [src]

pub fn retry<F, G, R>(tries: u32, wait: u32, 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.