jitter

package
v3.4.0-0.dev+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2018 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