forked from mirror/ants
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
ebb86ab67f
|
@ -17,6 +17,7 @@ Package ants implements a fixed goroutine pool for managing and recycling a mass
|
|||
## Features:
|
||||
|
||||
- Automatically managing and recycling a massive number of goroutines.
|
||||
- Periodically clearing overdue goroutines.
|
||||
- Friendly interfaces: submitting tasks, getting the number of running goroutines, readjusting capacity of pool dynamically, closing pool.
|
||||
- Efficient in memory usage and it even achieves higher performance than unlimited goroutines in golang.
|
||||
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
## 功能:
|
||||
|
||||
- 实现了自动调度并发的goroutine,复用goroutine
|
||||
- 定时清理过期的goroutine,进一步节省资源
|
||||
- 提供了友好的接口:任务提交、获取运行中的协程数量、动态调整协程池大小
|
||||
- 资源复用,极大节省内存使用量;在大规模批量并发任务场景下比原生goroutine并发具有更高的性能
|
||||
|
||||
|
|
Loading…
Reference in New Issue