Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Timer ¶
type Timer struct {
// contains filtered or unexported fields
}
Timer delivers ticks at regular but unaligned intervals.
Because the next interval is scheduled based on the interval + jitter, you are guaranteed at least interval seconds without missing a tick and ticks will be evenly scheduled over time.
On average you will have one collection each interval + (jitter/2).
The first tick is emitted after interval+jitter seconds.
Ticks are dropped for slow consumers.
Click to show internal directories.
Click to hide internal directories.