Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoalescingTimer ¶
CoalescingTimer enforces a minimum interval between timer firings.
func NewCoalescingTimer ¶
func NewCoalescingTimer(minFireInterval time.Duration) *CoalescingTimer
func (*CoalescingTimer) Reset ¶
func (ct *CoalescingTimer) Reset(d time.Duration)
Reset changes the timer to expire after duration d. Calls to this method are ignored after Stop had been called.
func (*CoalescingTimer) Stop ¶
func (ct *CoalescingTimer) Stop()
Stop prevents the timer from firing and frees up all resources. This method must not be called multiple times.
Click to show internal directories.
Click to hide internal directories.