longpool

package
v0.0.0-...-bb1a4e7 Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LongPool

type LongPool struct {
	New func() interface{}
	// contains filtered or unexported fields
}

LongPool holds interface{}.

func NewLongPool

func NewLongPool(max int) *LongPool

NewPool creates a new pool of interface{}.

func (*LongPool) Get

func (p *LongPool) Get() interface{}

Borrow an object from the pool.

func (*LongPool) Put

func (p *LongPool) Put(c interface{})

Return returns an object to the pool.

Jump to

Keyboard shortcuts

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