Registry / utility / again
library0.1.2rscratesunverified

A wasm-compatible retry utility for std library futures.

# Cargo.toml [dependencies] again = "0.1.2"
INSTALL
IMPORT
SIG · AGAIN
A
again
utilityrustv0.1.2
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.

RetryPolicy
use again::RetryPolicy;

Retries an async operation with default policy

use again::RetryPolicy; #[tokio::main] async fn main() { let policy = RetryPolicy::default(); let result = policy .retry(|| async { Ok::<_, std::io::Error>("success") }) .await; println!("{:?}", result); }
Debug
Known issues
gotchaRequires an async runtime (tokio, async-std, etc.)
fix
Add tokio or another async runtime as a dependency and use #[tokio::main] or similar
affects: >=0.1.0
Upgrade
Version history
0.1.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
26
Meta
1
OpenAI (training)
1
Resources
again — cargo add again · libregistry