timerpool

package
v0.0.0-...-e5dd5c1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

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