worker

package
v0.0.0-...-73c317a Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 3 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockedWorker

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

func NewBlockedWorker

func NewBlockedWorker(onStart func(), work func(), onStop func()) *BlockedWorker

func (*BlockedWorker) Start

func (l *BlockedWorker) Start()

func (*BlockedWorker) Stop

func (l *BlockedWorker) Stop()

type ScheduledWorker

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

func NewScheduledWorker

func NewScheduledWorker(
	onStart func(),
	work func(),
	onStop func(),
	duration time.Duration,
) *ScheduledWorker

func (*ScheduledWorker) Start

func (l *ScheduledWorker) Start()

func (*ScheduledWorker) Stop

func (l *ScheduledWorker) Stop()

Jump to

Keyboard shortcuts

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