flextimer

package
v0.0.0-...-3dc9624 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

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, maxTime, noise time.Duration) 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, maxTime, noise time.Duration)

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