Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ticker ¶
type Ticker struct { Duration time.Duration C <-chan time.Time // contains filtered or unexported fields }
Ticker is an implementation of resetable ticker
It keeps a constant Duration D, and when `Reset()“ is called, the ticker will be reset and next tick will arrive at least after D from the reset time.
Click to show internal directories.
Click to hide internal directories.