Registry / async / futures-retry

futures-retry

JSON →
library0.6.0rscratesunverified

Retry your Futures and Streams!

# Cargo.toml [dependencies] futures-retry = "0.6.0"
INSTALL
IMPORT
SIG · FUTURES-RETRY
F
futures-retry
asyncrustv0.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.

FutureRetry
✓ use futures_retry::FutureRetry;

Retries a future with a default retry policy.

use futures_retry::FutureRetry; use futures::future::Future; fn main() { let retry = FutureRetry::new( || async { Ok::<_, std::io::Error>(42) }, futures_retry::RetryPolicy::default(), ); let result = futures::executor::block_on(retry); println!("{:?}", result); }
Debug
Known issues
gotchaRequires an async runtime (e.g., tokio, async-std) to execute futures.
fix
Add a runtime dependency and use block_on or await within an async context.
affects: >=0.6.0
Upgrade
Version history
0.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
28
Resources
futures-retry — cargo add futures-retry · libregistry