A lightweight, concurrency-limited task queue with short-lived worker reuse to amortize goroutine stack growth.
-
Updated
Jun 5, 2026 - Go
A lightweight, concurrency-limited task queue with short-lived worker reuse to amortize goroutine stack growth.
支持预分配协程和用多少申请多少 分配的协程都有一个生命周期,生命周期到了会被自动回收 协程池最少有一个哨兵协程,最多有 maxWork + 1(哨兵) 如果要关闭协程池需要手动释放, 异常情况时会自动释放
Add a description, image, and links to the taskpool topic page so that developers can more easily learn about it.
To associate your repository with the taskpool topic, visit your repo's landing page and select "manage topics."