timer

package
v1.21.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResetTimer

func ResetTimer(timer *time.Timer, d time.Duration)

ResetTimer safely resets timer, handling the required stop+drain sequence first.

func StopAndDrainTimer

func StopAndDrainTimer(timer *time.Timer)

StopAndDrainTimer stops the timer and drains its channel if a tick was already queued.

Types

This section is empty.

Jump to

Keyboard shortcuts

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