pool

package
v4.0.21 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const MODULE = "pool"

Variables

View Source
var Pool *ants.Pool

Functions

func Close

func Close()

func Insert

func Insert(task func()) error

func Open

func Open() (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