pool

package
v0.22.4 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunWithWorkers

func RunWithWorkers[T any](workerCount int, fn []func() JobResult[T]) <-chan JobResult[T]

Types

type Job

type Job[T any] func() JobResult[T]

type JobResult

type JobResult[T any] struct {
	Output T
	Err    error
}

Jump to

Keyboard shortcuts

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