Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add examples #45

Merged
merged 1 commit into from
Feb 22, 2023
Merged

Add examples #45

merged 1 commit into from
Feb 22, 2023

Conversation

balroggg
Copy link
Contributor

Fix #42

@Xuanwo
Copy link
Owner

Xuanwo commented Feb 22, 2023

Thanks a lot!

@balroggg
Copy link
Contributor Author

Maybe useful to add example with closure.
Something like

let f = || async {
    //
    Err::<(), anyhow::Error>(anyhow::anyhow!("not retryable"))
};
let backoff = todo!();
f.retry(&backoff).await();

@Xuanwo
Copy link
Owner

Xuanwo commented Feb 22, 2023

Maybe useful to add example with closure.

LGTM! This PR is good enough to get merged now. Do you want to add it in this PR or start a new one?

@balroggg
Copy link
Contributor Author

Maybe useful to add example with closure.

LGTM! This PR is good enough to get merged now. Do you want to add it in this PR or start a new one?

Nice! I think in new one.

@Xuanwo Xuanwo merged commit e1d25df into Xuanwo:main Feb 22, 2023
@balroggg balroggg deleted the add_examples branch February 22, 2023 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add examples for user easier to discover how to use backon
2 participants