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 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
Click to show internal directories.
Click to hide internal directories.