Skip to main content

retry_on_lock

Function retry_on_lock 

Source
pub fn retry_on_lock<F, R>(max_attempts: u32, operation: F) -> Result<R>
where F: Fn() -> Result<R>,
Expand description

Retry an operation that returns CascadeError on index lock contention. Uses exponential backoff with the same timing as with_lock_retry.