Documentation
¶
Overview ¶
Package multitick broadcasts a time.Ticker to multiple receivers, all of which receive the same values, aligned to an offset.
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 broadcaster for time.Time tick events.
func NewTicker ¶
NewTicker creates and starts a new Ticker, whose ticks are sent to subscribers at the specified interval, delayed until the specified offset after the interval (there will be some imprecision). The first parameter is equivalent to "d" in time.NewTicker(d). If the offset is negative, ticking is not aligned to an offset, and begins immediately.
Click to show internal directories.
Click to hide internal directories.