timerutils

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseTimer

func CloseTimer(timer *time.Timer, drained *bool)

CloseTimer should be used as a deferred function in order to cleanly shut down a timer

func ResetTimer

func ResetTimer(timer *time.Timer, duration time.Duration, drained *bool)

ResetTimer sets drained to false after resetting the timer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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