[][src]Function again::retry

pub async fn retry<T>(task: T) -> Result<T::Item, T::Error> where
    T: Task

Retries a fallible Future with a default RetryPolicy

again::retry(|| async { Ok::<u32, ()>(42) });