worker

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkQueue

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

func NewWorkQueue

func NewWorkQueue(maxQueueSize int) *WorkQueue

func (*WorkQueue) AddJob

func (w *WorkQueue) AddJob(job jobType) bool

func (*WorkQueue) NumJobs

func (w *WorkQueue) NumJobs() int

func (*WorkQueue) Shutdown

func (w *WorkQueue) Shutdown()

func (*WorkQueue) StartWorkers

func (w *WorkQueue) StartWorkers(num int)

func (*WorkQueue) WaitForJobs

func (w *WorkQueue) WaitForJobs()

Jump to

Keyboard shortcuts

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