workers

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Workers

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

func New

func New(wg *sync.WaitGroup, quit chan struct{}, maxTasks int) *Workers

func (*Workers) Drain

func (w *Workers) Drain()

func (*Workers) Enqueue

func (w *Workers) Enqueue(fn func()) error

func (*Workers) Start

func (w *Workers) Start(workersN int)

func (*Workers) TasksCount

func (w *Workers) TasksCount() int

Jump to

Keyboard shortcuts

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