workpool

package
v1.2.6-sp7 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkPool

type WorkPool[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any](workerCount int, workerF func(chan T)) *WorkPool[T]

func (*WorkPool[T]) AddJob

func (wp *WorkPool[T]) AddJob(job T)

func (*WorkPool[T]) Start

func (wp *WorkPool[T]) Start()

func (*WorkPool[T]) Stop

func (wp *WorkPool[T]) Stop()

Jump to

Keyboard shortcuts

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