common

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalPool

type LocalPool[T any] struct {
	// contains filtered or unexported fields
}

func NewLocalPool

func NewLocalPool[T any](cap uint, initCreateNum uint, newFunc func() T, clearFunc func(item T), destroyFunc func(item T)) *LocalPool[T]

func (*LocalPool[T]) Clear

func (p *LocalPool[T]) Clear()

func (*LocalPool[T]) Get

func (p *LocalPool[T]) Get() (v T)

func (*LocalPool[T]) Put

func (p *LocalPool[T]) Put(v T)

Jump to

Keyboard shortcuts

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