worker

package module
v0.0.0-...-9e7eb76 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: MIT Imports: 1 Imported by: 0

README

worker

Simple worker pool utility for Go

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job interface {
	Process() error
}

type Pool

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

func NewPool

func NewPool(poolSize int) Pool

func (*Pool) AddJob

func (p *Pool) AddJob(j Job)

func (*Pool) Close

func (p *Pool) Close() error

func (*Pool) Start

func (p *Pool) Start()

Jump to

Keyboard shortcuts

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