[−][src]Module tryagain::future
An async version of the retry and retry_if function along with RetryFuture used to implement them.
Structs
RetryFuture | A future that will retry an operation. |
Functions
retry | Retries the provided function if it returns an error whenever the backoff allows. The first call resulting in success will have it's value returned to the caller. |
retry_if | Calls the provided function and if an error is returned it is passed to the predicate to determine if the function should be retried when the backoff function allows. |