Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImmediateTicker ¶
ImmediateTicker is a wrapper a ticker that produces the first tick instantaneously because. time.Ticker waits for the time.Duration it started with before the first tick.
func NewImmediateTicker ¶
func NewImmediateTicker(duration time.Duration) *ImmediateTicker
NewImmediateTicker creates a new instance of ImmediateTicker by wrapping Ticker around it
func (*ImmediateTicker) Stop ¶
func (b *ImmediateTicker) Stop()
Stop Gracefully closes the wrapped ticker and the wrapping ticker
Click to show internal directories.
Click to hide internal directories.