timer

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

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