Registry / utility / panjf2000-ants-v2

panjf2000-ants-v2

JSON →
library2.12.1gogounverified

A high-performance goroutine pool for Go, managing concurrency and resource usage.

go get github.com/panjf2000/ants/v2
INSTALL
IMPORT
SIG · PANJF2000-ANTS-V2
P
panjf2000-ants-v2
utilitygov2.12.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ants
github.com/panjf2000/ants/v2

Submit a task to a goroutine pool.

package main import ( "fmt" "sync" "github.com/panjf2000/ants/v2" ) func main() { pool, _ := ants.NewPool(10) defer pool.Release() var wg sync.WaitGroup wg.Add(1) pool.Submit(func() { fmt.Println("Hello from goroutine pool") wg.Done() }) wg.Wait() }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.12.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
panjf2000-ants-v2 — go get panjf2000-ants-v2 · libregistry