Skip to main content

with_retry

Function with_retry 

Source
pub fn with_retry<T>(
    op: impl FnMut() -> Result<T, StoreError>,
    attempts: u32,
) -> Result<T, StoreError>
Expand description

Bounded retry on Io errors (never on Conflict/Mapping/Corrupt).