pool

package
v0.0.0-...-381c4e2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDoNotRepool = errors.New("do not repool")

Functions

func IsDoNotRepool

func IsDoNotRepool(err error) bool

func MakeFakePool

func MakeFakePool[T any, TPtr schnittstellen.Ptr[T]]() *fakePool[T, TPtr]

func MakePool

func MakePool[T any, TPtr schnittstellen.Ptr[T]](
	New func() TPtr,
	Reset func(TPtr),
) *pool[T, TPtr]

func MakePoolWithReset

func MakePoolWithReset[T any, TPtr schnittstellen.Resetable[T]]() *poolWithReset[T, TPtr]

func MakePooledChain

func MakePooledChain[T schnittstellen.Poolable[T], TPtr schnittstellen.PoolablePtr[T]](
	p schnittstellen.Pool[T, TPtr],
	wfs ...schnittstellen.FuncIter[TPtr],
) schnittstellen.FuncIter[TPtr]

func MakeValue

func MakeValue[T any](
	construct func() T,
	reset func(T),
) poolValue[T]

func MakeWriterDoNotRepool

func MakeWriterDoNotRepool[T any]() schnittstellen.FuncIter[*T]

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL