package
1.4.1
Repository: https://github.com/m-lab/go.git
Documentation: pkg.go.dev

# README

Functions which run a given function as a memoryless Poisson process.

This is very useful if your function generates a gauge measurement or it exerts load on the system in some way. By distributing the measurement or load across time, we help ensure that our systems' data is minimally affected.

# Functions

AfterFunc constructs a single-shot time.Timer that, if repeatedly used to construct a series of timers, will ensure that the resulting events conform to the memoryless distribution.
NewTicker creates a new memoryless ticker.
NewTimer constructs a single-shot time.Timer that, if repeatedly used to construct a series of timers, will ensure that the resulting events conform to the memoryless distribution.
Run calls the given function repeatedly, using a memoryless.Ticker to wait between function calls.

# Variables

MakeTicker is a deprecated alias for NewTicker.

# Structs

Config represents the time we should wait between runs of the function.
Ticker is a struct that waits a config.Expected amount of time on average between sends down the channel C.