Skip to main content

retry_wait

Function retry_wait 

Source
pub fn retry_wait(
    base: Duration,
    attempts: i32,
    chosen: Option<Duration>,
) -> Duration
Expand description

How long to wait before the attempt after attempts: the delay a job chose, held between MIN_RETRY_AFTER and an hour, or else the doubling backoff from base, jittered.