advance06_objpool

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnObj

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

reusable object

type ObjPool

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

func NewObjPool

func NewObjPool(size int) *ObjPool

func (*ObjPool) Release

func (pool *ObjPool) Release(conn *ConnObj) error

func (*ObjPool) Take

func (pool *ObjPool) Take(timeout time.Duration) (*ConnObj, error)

Jump to

Keyboard shortcuts

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