Registry / utility / backon

backon

JSON →
library1.6.0rscratesunverified

Make retry like a built-in feature provided by Rust, with configurable backoff strategies.

# Cargo.toml [dependencies] backon = "1.6.0"
INSTALL
IMPORT
SIG · BACKON
B
backon
utilityrustv1.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Retryable
use backon::Retryable;

Retry an async operation with exponential backoff.

use backon::Retryable; fn main() { let result = (|| -> Result<i32, &str> { Ok(42) }) .retry(backon::ExponentialBackoff::default()) .await; println!("Result: {:?}", result); }
Debug
Known issues
gotchaRequires an async runtime (e.g., Tokio) for the retry mechanism.
fix
Add tokio as a dependency and use #[tokio::main] or similar.
affects: >=1.0.0
Upgrade
Version history
1.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
50 hits · last 30 days
node
44
Resources
backon — cargo add backon · libregistry