Documentation
¶
Overview ¶
Package gool offers a high-level API for running tasks asynchronously, restricting concurrent executions to the number of cpu cores or a specified limit.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gool ¶
type Gool struct {
// contains filtered or unexported fields
}
Gool manages a pool of goroutines for asynchronous task execution.
func Cpu ¶
func Cpu() *Gool
Cpu initializes a Gool instance with a global concurrency limit specified by cpu cores.
func (*Gool) Call ¶
func (g *Gool) Call(f func())
Call submits a function f for asynchronous execution in a new goroutine, respecting the concurrency limit.
Click to show internal directories.
Click to hide internal directories.