time

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Timer

type Timer struct {
	C chan time.Time
	// contains filtered or unexported fields
}

func NewTimer

func NewTimer(ctx context.Context, d time.Duration) *Timer

func (*Timer) IsRun

func (timer *Timer) IsRun() bool

func (*Timer) Reset

func (timer *Timer) Reset(ctx context.Context, d time.Duration) bool

func (*Timer) Stop

func (timer *Timer) Stop() bool

Jump to

Keyboard shortcuts

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