Open FrankReh opened 1 year ago
Hi, I have implemented https://github.com/Xuanwo/backon.
use anyhow::Result;
use backon::ExponentialBuilder;
use backon::Retryable;
async fn fetch() -> Result<String> {
Ok(reqwest::get("https://www.rust-lang.org/").await?.text().await?)
}
#[tokio::main]
async fn main() -> Result<()> {
let content = fetch.retry(&ExponentialBuilder::default()).await?;
println!("Fetch succeeded: {}", content);
Ok(())
}
Feel free to give it a try!
This repo hasn't had input from its author in 17 months. No commits, no issues answered, no PRs addressed. (Not complaining, just an observation.)
Has someone already forked and tried to address the issues and PRs that have come up or is there another crate that has been serving the same purpose?
Does someone know the protocol for the Rust docs.rs site when it comes to crates that may no longer be supported?