BackON
Make retry like a built-in feature provided by Rust.
- Simple: Just like a built-in feature:
your_fn.retry(ExponentialBuilder::default()).await
. - Flexible: Supports both blocking and async functions.
- Powerful: Allows control over retry behavior such as
when
andnotify
. - Customizable: Supports custom retry strategies like exponential, constant, etc.
- Adaptable: Works on all platforms supported by Rust, including both
wasm
andno-std
.
Quick Start
Retry an async function.
use Result;
use ExponentialBuilder;
use Retryable;
async
async
Retry a blocking function.
use Result;
use BlockingRetryable;
use ExponentialBuilder;
Contributing
Check out the CONTRIBUTING.md guide for more details on getting started with contributing to this project.
Getting help
Submit issues for bug report or asking questions in discussion.
License
Licensed under Apache License, Version 2.0.