Skip to main content

with_retry

Function with_retry 

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

Runs an asynchronous Supabase operation using the configured retry policy.

ยงErrors

Returns the final operation error when it is not retryable or the maximum number of attempts is reached.