Module examples

Source
Available on docsrs only.
Expand description

Examples of using backon.

Modulesยง

basic
Retry an async function.
closure
Retry an closure.
inside_mut_self
Retry an async function inside &mut self functions.
retry_after
Retry an async function with the Retry-After headers.
sqlx
Retry sqlx operations.
with_args
Retry function with args.
with_mut_self
Retry an async function which takes &mut self as receiver.
with_self
Retry an async function which takes &self as receiver.
with_specific_error
Retry with specify retryable error by when.