Skip to content
This repository has been archived by the owner on Nov 11, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
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