Function retry_operation

Source
pub async fn retry_operation<F, Fut, T, E>(
    strategy: &RetryStrategy,
    operation_name: &str,
    operation: F,
) -> Result<T, RetryError>
where F: FnMut() -> Fut, Fut: Future<Output = Result<T, E>>, E: Into<PostgresError> + Debug,
Expand description

Execute an operation with retry logic