pool

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool

type Pool[T any] struct {
	Size  int `yaml:"size,omitempty" json:"size,omitempty"`
	Sleep int `yaml:"sleep,omitempty" json:"sleep,omitempty"`
	// contains filtered or unexported fields
}

func (*Pool[T]) Start

func (p *Pool[T]) Start(worker func(context.Context, T) error, getWork func(int) ([]T, error)) error

Jump to

Keyboard shortcuts

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