mypool

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: BSD-3-Clause 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[V any] struct {
	sync.Pool
}

func NewPool

func NewPool[V any]() *Pool[V]

func (*Pool[V]) GetObj

func (p *Pool[V]) GetObj() (V, bool)

func (*Pool[V]) SetObj

func (p *Pool[V]) SetObj(o V)

Jump to

Keyboard shortcuts

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