Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Strategy ¶
type Strategy[K comparable] struct { // contains filtered or unexported fields }
Strategy defines how to calculate backoff time
func NewStrategy ¶
func NewStrategy[K comparable](initialDelay, maxDelay time.Duration, factor float64, backoffThreshold uint64) *Strategy[K]
NewStrategy returns a backoff calculation strategy
Click to show internal directories.
Click to hide internal directories.