syncutil

package
v0.0.1-test Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkerPool

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

WorkerPool represents a concurrent worker pool.

func NewWorkerPool

func NewWorkerPool(numWorkers int) WorkerPool

NewWorkerPool constructs a new WorkerPool.

func (WorkerPool) Close

func (p WorkerPool) Close()

func (WorkerPool) Schedule

func (p WorkerPool) Schedule(job func())

Schedule schedules a job to be executed by a worker in the pool.

Jump to

Keyboard shortcuts

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