Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BackOffForAttempt ¶ added in v1.1.0
BackOffForAttempt calculates the backoff duration for a given attempt based on exponential backoff strategy. It takes the attempt number as a parameter and computes the backoff duration using the formula:
backoff = backOffMin * (backOffFactor ^ attempt)
func DefaultDuration ¶
func DefaultInt ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.