pub async fn with_retry<F, Fut, T>( config: &RetryConfig, operation_name: &str, operation: F, ) -> Result<T>where F: Fn() -> Fut, Fut: Future<Output = Result<T>>,
Execute an async operation with retry logic.
config
operation
operation_name
The result of the operation, or the last error if all retries failed.