pool

package
v0.0.0-...-e95cdce Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 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 Pool

type Pool struct {
	// contains filtered or unexported fields
}

func New

func New(allocf func() interface{}) *Pool

func (*Pool) Alloc

func (p *Pool) Alloc() *PoolElement

func (*Pool) Free

func (p *Pool) Free(pe *PoolElement)

func (*Pool) FreeSize

func (p *Pool) FreeSize() int

func (*Pool) UsedSize

func (p *Pool) UsedSize() int

type PoolElement

type PoolElement struct {
	Value interface{}
}

Jump to

Keyboard shortcuts

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