concurrent

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkerPool

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

WorkerPool represents a pool of workers that can process jobs concurrently

func NewWorkerPool

func NewWorkerPool(workerCount int) *WorkerPool

NewWorkerPool creates a new worker pool with the specified number of workers

func (*WorkerPool) Run

func (wp *WorkerPool) Run(ctx context.Context, functions ...func() error) error

Run executes all functions using errgroup with goroutine limiting Returns the first error encountered, and cancels remaining work

Jump to

Keyboard shortcuts

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