pub async fn retry_async<F, Fut, T, E>( config: &RetryConfig, operation: F, ) -> Result<T, E>where F: FnMut() -> Fut, Fut: Future<Output = Result<T, E>>,
Retry an async operation with exponential backoff.
config
operation
The result of the operation, or the last error if all retries failed