Documentation
¶
Overview ¶
Package ticker implements a ticker that can be stopped and re-started.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ticker ¶
type Ticker interface {
// Start (re-)starts the ticker. Ticks will be delivered on the ticker's
// channel until Stop is called.
Start()
// StartAndRun (re-)starts the ticker. Ticks will be delivered on the ticker's
// channel until Stop is called. The Tick function is called instantly
StartAndRun()
// Stop stops the ticker. No ticks will be delivered on the ticker's channel
// after Stop returns and before Start is called again.
Stop()
// Stopped returns whether the ticker is stopped.
Stopped() bool
}
Click to show internal directories.
Click to hide internal directories.