pool

package
v4.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MODULE = "pool"

Variables

View Source
var Pool *ants.Pool

Functions

func Insert

func Insert(task func()) error

func Shutdown added in v4.1.0

func Shutdown() error

func Startup added in v4.1.0

func Startup() (err error)

Types

type Info

type Info struct {
	Cap     int `json:"cap,omitempty"`
	Free    int `json:"free,omitempty"`
	Running int `json:"running,omitempty"`
	Waiting int `json:"waiting,omitempty"`
}

func Stats

func Stats() *Info

Jump to

Keyboard shortcuts

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