timer

package
v2.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool struct {
	// contains filtered or unexported fields
}

Pool defines a timer pool

func NewPool

func NewPool() *Pool

NewPool creates an instance of Pool

func (*Pool) Get

func (tp *Pool) Get(timeout time.Duration) *time.Timer

Get returns a timer

func (*Pool) Put

func (tp *Pool) Put(timer *time.Timer)

Put the timer back to the pool

Jump to

Keyboard shortcuts

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