workerpool

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: BSD-2-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkerFunc

type WorkerFunc func(workerID int, jobData interface{})

type WorkerPool

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

func New

func New(size int) *WorkerPool

func (*WorkerPool) PublishJobData

func (wp *WorkerPool) PublishJobData(jobData interface{})

func (*WorkerPool) Run

func (wp *WorkerPool) Run(workerFunc WorkerFunc)

Jump to

Keyboard shortcuts

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