The highest tagged major version is
v4 .
Discover Packages
go.unistack.org/micro/v3
util
jitter
package
Version:
v3.8.8
Opens a new window with list of versions in this module.
Published: Nov 18, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package jitter provides a random jitter
Random returns a random time to jitter with max cap specified
Ticker is similar to time.Ticker but ticks at random intervals between
the min and max duration values (stored internally as int64 nanosecond
counts).
NewTicker returns a pointer to an initialized instance of the Ticker.
Min and max are durations of the shortest and longest allowed
ticks. Ticker will run in a goroutine until explicitly stopped.
Stop terminates the ticker goroutine and closes the C channel.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.