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

feat(backoff): Add functional options for ExponentialBackOff #137

Conversation

KhanSufiyanMirza
Copy link

This commit introduces functional options for configuring the ExponentialBackOff
struct in the backoff library. Functional options provide a flexible and
extensible way to set various parameters for the ExponentialBackOff.

  • Added functional options for InitialInterval, RandomizationFactor,
    Multiplier, MaxInterval, MaxElapsedTime, StopDuration, and Clock.
  • Updated NewExponentialBackOff to accept these functional options.
  • Added test case for the same.

Closes #136

@cenkalti cenkalti merged commit a83af7f into cenkalti:v4 Sep 15, 2023
1 check passed
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.

[enhancement] Add Functional Options for Configuring ExponentialBackOff
3 participants