Documentation ¶ Index ¶ Constants Variables func Close() func Insert(task func()) error func Open() (err error) type Info func Stats() *Info 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 Source Files ¶ View all Source files config.go pool.go stat.go Click to show internal directories. Click to hide internal directories.