timers

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Options)

func TimerDispatcherLen

func TimerDispatcherLen(length int) Option

Address of rpc service

type Options

type Options struct {
	TimerDispatcherLen int
}

type Timers

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

func NewTimer

func NewTimer(opts ...Option) *Timers

func (*Timers) AfterFunc

func (t *Timers) AfterFunc(d time.Duration, cb func()) *timer.Timer

func (*Timers) CronFunc

func (t *Timers) CronFunc(cronExpr *timer.CronExpr, cb func()) *timer.Cron

func (*Timers) OnDestroy

func (t *Timers) OnDestroy()

func (*Timers) OnInit

func (t *Timers) OnInit()

func (*Timers) OnRun

func (t *Timers) OnRun(closeSig chan bool)

Jump to

Keyboard shortcuts

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