Skip to main content

backoff

Function backoff 

Source
pub fn backoff(base: Duration, attempts: i32) -> Duration
Expand description

How long to wait before the attempt after attempts, doubling each time.