pool

package
v0.53.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OnError added in v0.53.0

type OnError func(error)

type Task added in v0.53.0

type Task func() error

type WorkerPool

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

func NewWorkerPool

func NewWorkerPool(numWorkers int) *WorkerPool

func (*WorkerPool) Submit

func (wp *WorkerPool) Submit(task Task, onError OnError)

func (*WorkerPool) TrySubmit

func (wp *WorkerPool) TrySubmit(task Task, onError OnError) bool

Jump to

Keyboard shortcuts

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