timer

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: GPL-3.0 Imports: 1 Imported by: 21

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskTimer

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

func NewTask

func NewTask(duration time.Duration, function func()) *TaskTimer

新建定时器

func (*TaskTimer) Pause

func (t *TaskTimer) Pause()

暂停定时器

func (*TaskTimer) Restart

func (t *TaskTimer) Restart()

继续定时器

func (*TaskTimer) Running

func (t *TaskTimer) Running() bool

func (*TaskTimer) Start

func (t *TaskTimer) Start()

启动定时器

func (*TaskTimer) Stop

func (t *TaskTimer) Stop()

停止定时器

Jump to

Keyboard shortcuts

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