Skip to main content

next_backoff_delay

Function next_backoff_delay 

Source
pub fn next_backoff_delay(
    config: &BackoffConfig,
    state: &BackoffState,
) -> Option<Duration>
Expand description

Returns the delay before the next attempt, or None if retries are exhausted. Delay doubles each attempt and is capped at config.max_delay_ms.