Skip to main content

retry

Function retry 

Source
pub fn retry<T>(
    op: impl FnMut() -> Result<T>,
    transient: impl Fn(&Error) -> bool,
    pause: Duration,
) -> Result<T>
Expand description

Runs op, repeating up to ATTEMPTS times while transient says the error will pass.