pool

package
v0.0.0-...-e98e1b7 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorPoolClosed = errors.New("Pool has been closed")

Functions

This section is empty.

Types

type Pool

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

func New

func New(fn factoryFunc, size uint) (*Pool, error)

func (*Pool) Acquire

func (p *Pool) Acquire() (io.Closer, error)

func (*Pool) Close

func (p *Pool) Close()

func (*Pool) Release

func (p *Pool) Release(r io.Closer)

Jump to

Keyboard shortcuts

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