workerpool

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 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 Job

type Job func() error

type Pool

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

func New

func New(workerCount int) *Pool

func (*Pool) AddJob

func (p *Pool) AddJob(job Job)

func (*Pool) Close

func (p *Pool) Close()

func (*Pool) Start

func (p *Pool) Start()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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