pool

package
v0.0.0-...-3214d3a Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPoolClosed = 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 func() (io.Closer, error), 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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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