systimer

package
v0.0.0-...-d098e83 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Del

func Del(timer *time.Timer) bool

Types

type OnTimerFun

type OnTimerFun func(arg interface{}) int

type SysTimerMgr

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

func (*SysTimerMgr) AddSecond

func (p *SysTimerMgr) AddSecond(cb OnTimerFun, arg interface{}, second time.Duration) (timer *time.Timer)

func (*SysTimerMgr) Start

func (p *SysTimerMgr) Start(timerOutChan chan<- interface{})

func (*SysTimerMgr) Stop

func (p *SysTimerMgr) Stop()

type SysTimerParameter

type SysTimerParameter struct {
	Fun OnTimerFun
	Arg interface{}
}

Jump to

Keyboard shortcuts

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