workerpool

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 3 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 func()

type WorkerPool

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

func NewWorkerPool

func NewWorkerPool(workerCount int) *WorkerPool

func (*WorkerPool) Close

func (p *WorkerPool) Close()

func (*WorkerPool) FreeWorkers

func (p *WorkerPool) FreeWorkers() int

func (*WorkerPool) Resize

func (p *WorkerPool) Resize(n int)

func (*WorkerPool) Submit

func (p *WorkerPool) Submit(task Task) error

Jump to

Keyboard shortcuts

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