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

DoWithData? #22

Open
craigpastro opened this issue Sep 19, 2023 · 0 comments
Open

DoWithData? #22

craigpastro opened this issue Sep 19, 2023 · 0 comments

Comments

@craigpastro
Copy link

Hi, me again!

Any thoughts to adding a generic DoWithData[T](ctx context.Context, b Backoff, f RetryFunc[T]) (T, error) {...} function similar to https://pkg.go.dev/github.com/cenkalti/backoff/v4#RetryWithData? Obviously, I could use that, but the API here seems more intuitive to me.

Also happy to try a PR if this is something you are interested in.

Thanks!

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

No branches or pull requests

1 participant