Documentation ¶
Overview ¶
Package syncpool provides a generic wrapper around sync.Pool Copied from https://github.com/mkmik/syncpool
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶
type Pool[T any] struct { // contains filtered or unexported fields }
A Pool is a generic wrapper around a sync.Pool.
func New ¶
New creates a new Pool with the provided new function.
The equivalent sync.Pool construct is "sync.Pool{New: fn}"
Click to show internal directories.
Click to hide internal directories.