Skip to main content

retry_async

Function retry_async 

Source
pub async fn retry_async<F, Fut, T, E>(
    op: F,
    max_attempts: usize,
    base_delay: Duration,
) -> Result<T, E>
where F: FnMut() -> Fut, Fut: Future<Output = Result<T, E>>,
Expand description

Retry an async operation with fixed backoff.