timmer

package
v1.76.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Timmer

type Timmer struct {
	Timer *time.Timer
	C     <-chan time.Time
}

This is a wrapper around Go std Timer, with a saner API.

func New

func New() *Timmer

func (*Timmer) Restart

func (t *Timmer) Restart(d time.Duration)

func (*Timmer) Stop

func (t *Timmer) Stop()

Jump to

Keyboard shortcuts

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