pool

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: MIT Imports: 5 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

func Shutdown() error

func Startup

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