Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ticker ¶
type Ticker struct {
// contains filtered or unexported fields
}
Ticker is a background ticker.
func New ¶
New starts a background ticker with a period specified by the duration argument, that will call the given function f on each tick. It is the caller's responsibility to ensure that the returned ticker is stopped via its Stop method, otherwise resources may leak.
Click to show internal directories.
Click to hide internal directories.