Skip to main content

constant

Function constant 

Source
pub fn constant(delay: Duration, max_times: Option<usize>) -> ConstantBuilder
Expand description

Builds a constant-delay backoff schedule.

max_times bounds the number of retries; pass None to retry indefinitely.