timerpool

package
v1.101.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(d time.Duration) *time.Timer

Get returns a timer for the given duration d from the pool.

Return back the timer to the pool with Put.

func Put

func Put(t *time.Timer)

Put returns t to the pool.

t cannot be accessed after returning to the pool.

Types

This section is empty.

Jump to

Keyboard shortcuts

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