pub async fn retry_if<T, C>(task: T, condition: C) -> Result<T::Item, T::Error>Expand description
Retries a fallible Future under a certain provided conditions with a default RetryPolicy
again::retry_if(|| async { Err::<u32, u32>(7) }, |err: &u32| *err != 42);