listener

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 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 TaskFunc added in v1.4.9

type TaskFunc = func(context.Context)

type TimerTask

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

func NewTimerTask

func NewTimerTask() *TimerTask

func (*TimerTask) RandRun

func (task *TimerTask) RandRun(ctx context.Context, minInterval, maxInterval time.Duration, do TaskFunc)

func (*TimerTask) Run

func (task *TimerTask) Run(ctx context.Context, interval time.Duration, do TaskFunc)

func (*TimerTask) Times

func (task *TimerTask) Times() uint

Jump to

Keyboard shortcuts

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