gopool

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: BSD-3-Clause Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoPool

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

func NewPool

func NewPool(minlimit int64, maxlimit int64) *GoPool

func NewPoolWithFuncLimit

func NewPoolWithFuncLimit(minlimit int64, maxlimit int64, FuncLimit int) *GoPool

func (*GoPool) Close

func (g *GoPool) Close()

Close when Close ,the pool will enable goroutine, and the func in the pool will be started with goroutine

func (*GoPool) Go

func (g *GoPool) Go(f func())

func (*GoPool) NumUnExecu

func (g *GoPool) NumUnExecu() int

NumUnExecu the number of functions not executed

func (*GoPool) TurnOff

func (g *GoPool) TurnOff(off bool)

Jump to

Keyboard shortcuts

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