pool

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTool

func NewTool(c Client, opts contract.ToolOptions[Client]) *defaultTool

Types

type Client

type Client interface {
	Acquire()
	Release()
	ActiveWorkers() int
	WaitAll()
	Shutdown()
}

func NewClient

func NewClient(opts ClientOptions) Client

type ClientOption added in v0.1.6

type ClientOption func(*ClientOptions)

func WithConcurrency

func WithConcurrency(n int) ClientOption

type ClientOptions added in v0.1.6

type ClientOptions struct {
	Concurrency int
}

func ApplyClientOptions added in v0.1.6

func ApplyClientOptions(opts *ClientOptions, modifiers ...ClientOption) ClientOptions

Jump to

Keyboard shortcuts

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