timez

package
v19.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CoalescingTimer

type CoalescingTimer struct {
	C <-chan time.Time
	// contains filtered or unexported fields
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL