Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface {
Acquire()
Release()
ActiveWorkers() int
WaitAll()
Shutdown()
}
func NewClient ¶
func NewClient(opts PoolOptions) Client
type PoolOption ¶
type PoolOption func(*PoolOptions)
func WithConcurrency ¶
func WithConcurrency(n int) PoolOption
type PoolOptions ¶
type PoolOptions struct {
Concurrency int
}
func ApplyPoolOptions ¶
func ApplyPoolOptions(opts *PoolOptions, modifiers ...PoolOption) PoolOptions
Click to show internal directories.
Click to hide internal directories.