pool

package
v0.0.0-...-c9cf022 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 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