Skip to main content

retry_delay_ms

Function retry_delay_ms 

Source
pub fn retry_delay_ms(
    base_delay_ms: u64,
    max_delay_ms: Option<u64>,
    attempt: u32,
) -> u64
Expand description

The backoff before retry attempt (1-based): base * 2^(attempt-1), capped.