Documentation
¶
Overview ¶
Package workerpool provides a fixed-size goroutine pool with blocking submit.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool is a fixed-size goroutine pool. Submit blocks when all workers are busy, providing natural backpressure.
func New ¶
New creates a fixed-size goroutine pool with size workers. The internal queue capacity equals size — Submit blocks when all workers busy.
Click to show internal directories.
Click to hide internal directories.