retry_with_policy

Function retry_with_policy 

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

Retry executor - wraps a future with retry logic