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

dynamic delay time #62

Closed
khalil-farashiani opened this issue Jun 1, 2022 · 1 comment
Closed

dynamic delay time #62

khalil-farashiani opened this issue Jun 1, 2022 · 1 comment

Comments

@khalil-farashiani
Copy link

how to make a dynamic delay time for example for he first retry delay is 5 second and for second time delay be 10. I mean delay can increase after a retry

@JaSei
Copy link
Collaborator

JaSei commented Jun 10, 2022

Hi, look at the example https://github.com/avast/retry-go/blob/master/examples/delay_based_on_error_test.go. I hope it helps you.

@JaSei JaSei closed this as completed Jun 10, 2022
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

2 participants