Skip to main content

exponential_delay

Function exponential_delay 

Source
fn exponential_delay(base: Duration, attempt: u32) -> Duration
Expand description

base * 2^attempt for a 0-indexed attempt, capped at 32x to avoid overflow.