Skip to main content

retry_with_delay

Function retry_with_delay 

Source
pub async fn retry_with_delay<T, E, F, Fut>(
    count: usize,
    delay: Duration,
    f: F,
) -> Result<T, E>
where F: FnMut() -> Fut, Fut: Future<Output = Result<T, E>>,
Expand description

Like retry, sleeping delay between attempts.