Documentation
¶
Overview ¶
Package waitpool provides a bounded sync.Pool.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WaitPool ¶
type WaitPool[T any] struct { // contains filtered or unexported fields }
WaitPool is a bounded sync.Pool. It is safe for concurrent use.
func New ¶
New creates a new WaitPool with a maximum size of max. If max is 0, the pool is unbounded.
Click to show internal directories.
Click to hide internal directories.