timer

package
v0.0.0-...-4158b14 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimeForever = time.Duration(math.MaxInt64)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Timer

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

func New

func New(name string) *Timer

func (*Timer) After

func (t *Timer) After(d time.Duration) <-chan time.Time

After used as time.After.

func (*Timer) AfterFunc

func (t *Timer) AfterFunc(timeout time.Duration, f func()) *time.Timer

AfterFunc used as time.AfterFunc.

func (*Timer) Async

func (t *Timer) Async(f func())

Async executes f in another goroutine.

func (*Timer) IsTimerRunning

func (t *Timer) IsTimerRunning() bool

IsTimerRunning .

func (*Timer) Start

func (t *Timer) Start()

Start .

func (*Timer) Stop

func (t *Timer) Stop()

Stop .

Jump to

Keyboard shortcuts

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