retry_sleep_within_total

Function retry_sleep_within_total 

Source
pub fn retry_sleep_within_total(
    total_deadline: Option<Duration>,
    started: Instant,
    delay: Duration,
) -> Option<Duration>
Expand description

retry_sleep_under_total_deadline reading the wall clock from started (the instant captured at the first attempt of the retry loop).