binarybackoff

package
v0.0.0-...-53b40aa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2018 License: AGPL-3.0, AGPL-3.0-only Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryBackoffEngine

type BinaryBackoffEngine struct {
	Cur time.Duration
	// contains filtered or unexported fields
}

func NewBinaryBackoffEngine

func NewBinaryBackoffEngine(rng *rand.Rand, min, max time.Duration) *BinaryBackoffEngine

func (*BinaryBackoffEngine) Advance

func (bbe *BinaryBackoffEngine) Advance() time.Duration

func (*BinaryBackoffEngine) After

func (bbe *BinaryBackoffEngine) After(fun func())

func (*BinaryBackoffEngine) Shrink

func (bbe *BinaryBackoffEngine) Shrink(roundToZero time.Duration)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL