workerpool

package
v0.0.0-...-e2ba8bf Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 1 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 {
	// contains filtered or unexported fields
}

func NewWP

func NewWP(nWorkers int) *WorkerPool

func (*WorkerPool) Do

func (wp *WorkerPool) Do(job func())

func (*WorkerPool) Run

func (wp *WorkerPool) Run()

func (*WorkerPool) Stop

func (wp *WorkerPool) Stop()

Jump to

Keyboard shortcuts

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