jitter

package
v0.0.0-...-712e5b7 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ticker

type Ticker struct {
	C <-chan time.Time

	MinDuration time.Duration
	MaxJitter   time.Duration
	// contains filtered or unexported fields
}

Ticker tries to emit events on channel C at minDuration intervals plus up to maxJitter.

func NewTicker

func NewTicker(minDuration time.Duration, maxJitter time.Duration) *Ticker

func (*Ticker) Stop

func (t *Ticker) Stop()

Jump to

Keyboard shortcuts

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