https://github.com/uttarayan21/retry
https://github.com/uttarayan21/retry
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/uttarayan21/retry
- Owner: uttarayan21
- Created: 2023-09-05T17:41:30.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-05T11:04:13.000Z (over 1 year ago)
- Last Synced: 2025-03-20T06:46:05.687Z (about 2 months ago)
- Language: Rust
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Retry
```rust
use retry::prelude::*;
#[tokio::main]
pub async fn main() {
let arg1 = 100
foo.retry::<3>(arg1).await;
}
pub async fn foo(arg1: u32) -> Result<(), ()> {
// do_stuff().await
}
```