diff --git a/README.md b/README.md index 0dd5342..aeaa875 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ -

ants

-A goroutine pool for Go +A goroutine pool in Go

@@ -25,7 +24,7 @@ Library `ants` implements a goroutine pool with fixed capacity, managing and rec - Managing and recycling a massive number of goroutines automatically - Purging overdue goroutines periodically -- Friendly interfaces: submitting tasks, getting the number of running goroutines, tuning capacity of pool dynamically, closing pool +- Abundant APIs: submitting tasks, getting the number of running goroutines, tuning capacity of pool dynamically, closing pool - Handle panic gracefully to prevent programs from crash - Efficient in memory usage and it even achieves [higher performance](#-performance-summary) than unlimited goroutines in Golang - Nonblocking mechanism diff --git a/README_ZH.md b/README_ZH.md index 93d1134..f08c35a 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -1,7 +1,6 @@ -

ants

-A goroutine pool for Go +Go 语言的 goroutine 池

@@ -24,8 +23,8 @@ ## 🚀 功能: - 自动调度海量的 goroutines,复用 goroutines -- 定时清理过期的 goroutines,进一步节省资源 -- 提供了友好的接口:任务提交、获取运行中的 goroutine 数量、动态调整 goroutine 池大小 +- 定期清理过期的 goroutines,进一步节省资源 +- 提供了大量有用的接口:任务提交、获取运行中的 goroutine 数量、动态调整 goroutine 池大小 - 优雅处理 panic,防止程序崩溃 - 资源复用,极大节省内存使用量;在大规模批量并发任务场景下比原生 goroutine 并发具有[更高的性能](#-性能小结) - 非阻塞机制