worker

package
v0.0.0-...-b629d69 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: MPL-2.0 Imports: 3 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(interface{}) interface{}

type WorkerPool

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

func NewPool

func NewPool(count int, jobs *list.List) *WorkerPool

func (*WorkerPool) IsDone

func (p *WorkerPool) IsDone() bool

func (*WorkerPool) Run

type WorkerPoolAwaiter

type WorkerPoolAwaiter func() (*list.List, bool)

type WorkerPoolFuture

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

func (*WorkerPoolFuture) Await

func (p *WorkerPoolFuture) Await() (*list.List, bool)

func (*WorkerPoolFuture) GetAwaiter

func (p *WorkerPoolFuture) GetAwaiter() WorkerPoolAwaiter

Jump to

Keyboard shortcuts

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