flextimer

package
v0.0.0-...-7f3d85a Latest Latest
Warning

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

Go to latest
Published: May 2, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TickNow

func TickNow(hdl interface{})

func UpdateRangeTicker

func UpdateRangeTicker(hdl interface{}, minTime time.Duration,
	maxTime time.Duration)

Note that the above member functions aren't always usable since the FlexTickerHandle type is not exported. Hence these functions help.

Types

type FlexTickerHandle

type FlexTickerHandle struct {
	C <-chan time.Time
	// contains filtered or unexported fields
}

Ticker handle for caller

func NewExpTicker

func NewExpTicker(minTime time.Duration, maxTime time.Duration, randomFactor float64) FlexTickerHandle

func NewRangeTicker

func NewRangeTicker(minTime time.Duration, maxTime time.Duration) FlexTickerHandle

func (FlexTickerHandle) StopTicker

func (f FlexTickerHandle) StopTicker()

func (FlexTickerHandle) TickNow

func (f FlexTickerHandle) TickNow()

Insert a tick now in addition to running timers

func (FlexTickerHandle) UpdateExpTicker

func (f FlexTickerHandle) UpdateExpTicker(minTime time.Duration, maxTime time.Duration, randomFactor float64)

func (FlexTickerHandle) UpdateRangeTicker

func (f FlexTickerHandle) UpdateRangeTicker(minTime time.Duration, maxTime time.Duration)

Jump to

Keyboard shortcuts

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