Crate fuchsia_backoff
source ·Traits
A backoff policy for deciding to retry an operation.
A task produces an asynchronous computation that can be retried if the returned future fails
with some error.
Functions
Execute the async task. If it errs out, attempt to run the task again after a delay if the
backoff
yields a duration. Otherwise, collect all the errors and return them to the caller.Execute the async task. If it errs out, attempt to run the task again after a delay if the
backoff
yields a duration. Otherwise, return the first error that occurred to the caller.Execute the async task. If it errs out, attempt to run the task again after a delay if the
backoff
yields a duration. Otherwise, return the last error that occurred to the caller.