gpool

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CloseErr = fmt.Errorf("pool was closed")
View Source
var NilErr = fmt.Errorf("param can not be nil")

Functions

This section is empty.

Types

type GPool

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

func NewGPool

func NewGPool(maxCount int64, fun func(param interface{})) *GPool

func (*GPool) Clear

func (g *GPool) Clear()

func (*GPool) Close

func (g *GPool) Close()

func (*GPool) Run

func (g *GPool) Run(param interface{}) error

Jump to

Keyboard shortcuts

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