Help us shape the future of Go! Take the 2026 Go Developer Survey

timer

package
v1.21.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 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