package
Version:
v1.5.1
Opens a new window with list of versions in this module.
Published: Apr 16, 2025
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
sync_pool is a generic sync.Pool wrapper
type SyncPool[T any] struct {
}
func New[T any](init func() T, reset func(T)) SyncPool[T]
New creates a new Pool[T].
Get returns a new T from the pool.
New creates a new object of type T.
Put returns a T to the pool.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.