#135·conc

Use custom go pool

Author: cocktail18Created Apr 17, 2024Updated May 23, 2025

conc would spawns a new goroutine when pool.Go call each time. It would cause waste of resources in some case. Is it had a plan to use a custom goroutine pool instead of spawn every time ? for example:

type gPool interface {
    Do(func (){})
}

pool.NewWithCustomPool(gPool)