Skip to main content

retry_download

Function retry_download 

Source
pub async fn retry_download<T, Attempt, AttemptFuture>(
    operation: &'static str,
    attempt: Attempt,
) -> Result<T, DownloadError>
where Attempt: FnMut() -> AttemptFuture, AttemptFuture: Future<Output = Result<T, DownloadError>>,