Documentation ¶
Overview ¶
This file contains the timer manager struct and methods. A timer manager is used for handling a map of timers which perform a callback when they expire. They can be removed or refreshed before they expire.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTimerDoesNotExist = errors.New("timer does not exist")
Functions ¶
func NewManager ¶
func NewManager() (*manager, func())
NewManager initializes a new timer manager with the provided onTimeoutFunc.
Returns a pointer to Manager and a shutdown function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.