package
Version:
v0.30.6
Opens a new window with list of versions in this module.
Published: Jan 3, 2023
License: AGPL-3.0, AGPL-3.0-only
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
¶
type Pool[T any] struct {
}
func New[T any, F func() T](fn F) *Pool[T]
func (p *Pool[T]) Get() T
func (p *Pool[T]) Put(t T)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.