Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exponential ¶
type Exponential struct {
// contains filtered or unexported fields
}
Exponential implements the exponential backoff as defined by [this wikipedia article](https://en.wikipedia.org/wiki/Exponential_backoff). More specifically a homebrew version based on the IPBA algorithm from [Intelligent Paging Backoff Algorithm for IEEE 802.11 MAC Protocol](https://www.researchgate.net/figure/IPBA-algorithm-description_fig6_258402123)
func NewExponentialBackoff ¶
func NewExponentialBackoff(interval time.Duration) *Exponential
func (*Exponential) Duration ¶
func (e *Exponential) Duration(ctx context.Context) <-chan time.Duration
func (*Exponential) Reset ¶
func (e *Exponential) Reset()
Click to show internal directories.
Click to hide internal directories.