workers

package
v0.0.0-...-e884aa9 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 2 Imported by: 0

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