pub fn retry<T>( op: impl FnMut() -> Result<T>, transient: impl Fn(&Error) -> bool, pause: Duration, ) -> Result<T>
Runs op, repeating up to ATTEMPTS times while transient says the error will pass.
op
ATTEMPTS
transient