pool

package
v0.0.0-...-89b4846 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ThreadPoolCancelled = fmt.Errorf("thread pool cancelled")

Functions

This section is empty.

Types

type ThreadPool

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

func New

func New(n int) *ThreadPool

func (*ThreadPool) Add

func (tp *ThreadPool) Add(f func(context.Context) error)

func (*ThreadPool) DoneAddingJobs

func (tp *ThreadPool) DoneAddingJobs()

func (*ThreadPool) Run

func (tp *ThreadPool) Run() error

Jump to

Keyboard shortcuts

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