pool

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2025 License: Unlicense Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListPool

type ListPool[I any] struct {
	// contains filtered or unexported fields
}

can't be used concurrently, use sync.Pool instead.

func NewListPool added in v0.3.2

func NewListPool[I any](poolSize int, listInitialSize uint) *ListPool[I]

func (*ListPool[I]) Get

func (bp *ListPool[I]) Get() []I

func (*ListPool[I]) Put

func (bp *ListPool[I]) Put(x []I)

Jump to

Keyboard shortcuts

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