Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Ticker ¶
type Ticker struct {
// contains filtered or unexported fields
}
Ticker is task that gets executed repeatedly. It adjusts the intervals or drops ticks to make up for slow executions.
func NewTicker ¶
NewTicker creates a new Ticker from the given details. The interval must be greater than zero; if not, NewTicker will panic.
func (*Ticker) WaitForGracefulShutdown ¶
func (t *Ticker) WaitForGracefulShutdown()
WaitForGracefulShutdown waits until the Ticker was shut down and the last handler has terminated.
func (*Ticker) WaitForShutdown ¶
func (t *Ticker) WaitForShutdown()
WaitForShutdown waits until the Ticker was shut down.
Click to show internal directories.
Click to hide internal directories.