ants
ants is a high-performance and low-cost goroutine pool in Go
Library ants implements a goroutine pool with fixed capacity, managing and recycling a massive number of goroutines, allowing developers to limit the number of goroutines in your concurrent programs. Managing and recycling a massive number of goroutines automatically. Purging overdue goroutines periodically. Abundant APIs: submitting tasks, getting the number of running goroutines, tuning capacity of pool dynamically, releasing pool, rebooting pool. Handle panic gracefully to prevent programs...