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

Support Object Instance #8

Closed
ledongthuc opened this issue Jul 24, 2022 · 0 comments
Closed

Support Object Instance #8

ledongthuc opened this issue Jul 24, 2022 · 0 comments
Assignees

Comments

@ledongthuc
Copy link
Member

Ideally, we support an instance of goretry such as

retry := new goretry.Instance{
   MaxRetries: x,
   MaxWaiting: y,
   Jitter: true,
}

retry.Sequence(...)
retry.Fibonacci(...)

We also support a standard instance goretry.StdInsnace that will be used if the client use retries function directly:

goretry.Std.Sequence(...) === goretry.Sequence()
goretry.Std.Fibonacci(...) === goretry.Fibonacci()
@ledongthuc ledongthuc self-assigned this Jul 24, 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

1 participant