package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Jul 16, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 3
Opens a new window with list of known importers.
Documentation
¶
JitterPct is a percent by which to scale a duration up or down.
For example, 0.1 will result in +/- 10%.
type Ticker struct {
C <-chan time.Time
}
Ticker is like time.Ticker, but with a variable period.
NewTicker returns a started Ticker which calls nextDur for each period.
Ticker.Stop should be called to prevent goroutine leaks.
Reset starts a new period.
Stop permanently stops the Ticker. It cannot be Reset.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.