Function retry::retry

source · []
pub fn retry<I, O, R, E, OR>(iterable: I, operation: O) -> Result<R, Error<E>>where
    I: IntoIterator<Item = Duration>,
    O: FnMut() -> OR,
    OR: Into<OperationResult<R, E>>,
Expand description

Retry the given operation synchronously until it succeeds, or until the given Duration iterator ends.