task

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	Name     string
	Interval time.Duration
	Execute  func() error
	Reload   func()
	Access   sync.RWMutex
	Running  bool
	Stop     chan struct{}
}

func (*Task) Close

func (t *Task) Close()

func (*Task) ExecuteWithTimeout added in v0.2.4

func (t *Task) ExecuteWithTimeout() error

func (*Task) Start

func (t *Task) Start(first bool) error

Jump to

Keyboard shortcuts

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