Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ticker ¶
type Ticker struct { C <-chan int // contains filtered or unexported fields }
Ticker holds a channel that delivers ticks of a clock at intervals. The ticks are aligned to interval boundaries.
func New ¶
New returns a new Ticker containing a channel that will send the time with a period specified by the duration argument. It adjusts the intervals or drops ticks to make up for slow receivers. The duration must be greater than zero; if not, New will panic. Stop the Ticker to release associated resources.
Click to show internal directories.
Click to hide internal directories.