package
1.0.10
Repository: https://github.com/chenleijava/go-guava.git
Documentation: pkg.go.dev

# Functions

pool := NewAsyncPool(10, 1024) release resources used by pooldefer pool.Release()var j intwait job countpool.WaitCount(10) submit one or more jobs to poolfor i := 0; i < 10; i++ {count := iadd job to queuepool.JobQueue <- func() {log.Printf("num:%d", j)fmt.Printf("I am worker! Number %d\n", count)done one jobpool.JobDone()}}pool.WaitAll()log.Printf("main goroutine done jobs ,hook >>>>>")create async goroutine pool.
https://github.com/Jeffail/tunnyTunny is a Golang library for spawning and managing a goroutine pool, allowing you to limit workcoming from any number of goroutines with a synchronous API.A fixed goroutine pool is helpful when you have work coming from an arbitrary number of asynchronous sources,but a limited capacity for parallel processing.