支持预分配协程和用多少申请多少 分配的协程都有一个生命周期,生命周期到了会被自动回收 协程池最少有一个哨兵协程,最多有 maxWork + 1(哨兵) 如果要关闭协程池需要手动释放, 异常情况时会自动释放
-
Updated
Aug 12, 2024 - Go
支持预分配协程和用多少申请多少 分配的协程都有一个生命周期,生命周期到了会被自动回收 协程池最少有一个哨兵协程,最多有 maxWork + 1(哨兵) 如果要关闭协程池需要手动释放, 异常情况时会自动释放
taskgo is a lightweight task pool in Go
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."