Skip to main content

retry

Function retry 

Source
pub async fn retry<T, E, F, Fut>(
    policy: RetryPolicy,
    operation: F,
) -> Result<T, E>
where F: FnMut() -> Fut, Fut: Future<Output = Result<T, E>>,
Expand description

Retries an async operation with bounded exponential backoff.