mirror of https://github.com/panjf2000/ants.git
Renew READMEs
This commit is contained in:
parent
0be4487445
commit
809379e657
|
@ -1,7 +1,6 @@
|
||||||
<h1 align='center'>ants</h1>
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="https://raw.githubusercontent.com/panjf2000/logos/master/ants/logo.png"/>
|
<img src="https://raw.githubusercontent.com/panjf2000/logos/master/ants/logo.png"/>
|
||||||
<b>A goroutine pool for Go</b>
|
<b>A goroutine pool in Go</b>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
<a title="Build Status" target="_blank" href="https://travis-ci.com/panjf2000/ants"><img src="https://img.shields.io/travis/com/panjf2000/ants?style=flat-square&logo=appveyor"></a>
|
<a title="Build Status" target="_blank" href="https://travis-ci.com/panjf2000/ants"><img src="https://img.shields.io/travis/com/panjf2000/ants?style=flat-square&logo=appveyor"></a>
|
||||||
<a title="Codecov" target="_blank" href="https://codecov.io/gh/panjf2000/ants"><img src="https://img.shields.io/codecov/c/github/panjf2000/ants?style=flat-square&logo=appveyor"></a>
|
<a title="Codecov" target="_blank" href="https://codecov.io/gh/panjf2000/ants"><img src="https://img.shields.io/codecov/c/github/panjf2000/ants?style=flat-square&logo=appveyor"></a>
|
||||||
|
@ -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
|
- Managing and recycling a massive number of goroutines automatically
|
||||||
- Purging overdue goroutines periodically
|
- 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
|
- 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
|
- Efficient in memory usage and it even achieves [higher performance](#-performance-summary) than unlimited goroutines in Golang
|
||||||
- Nonblocking mechanism
|
- Nonblocking mechanism
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<h1 align='center'>ants</h1>
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="https://raw.githubusercontent.com/panjf2000/logos/master/ants/logo.png"/>
|
<img src="https://raw.githubusercontent.com/panjf2000/logos/master/ants/logo.png"/>
|
||||||
<b>A goroutine pool for Go</b>
|
<b>Go 语言的 goroutine 池</b>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
<a title="Build Status" target="_blank" href="https://travis-ci.com/panjf2000/ants"><img src="https://img.shields.io/travis/com/panjf2000/ants?style=flat-square&logo=appveyor"></a>
|
<a title="Build Status" target="_blank" href="https://travis-ci.com/panjf2000/ants"><img src="https://img.shields.io/travis/com/panjf2000/ants?style=flat-square&logo=appveyor"></a>
|
||||||
<a title="Codecov" target="_blank" href="https://codecov.io/gh/panjf2000/ants"><img src="https://img.shields.io/codecov/c/github/panjf2000/ants?style=flat-square&logo=appveyor"></a>
|
<a title="Codecov" target="_blank" href="https://codecov.io/gh/panjf2000/ants"><img src="https://img.shields.io/codecov/c/github/panjf2000/ants?style=flat-square&logo=appveyor"></a>
|
||||||
|
@ -24,8 +23,8 @@
|
||||||
## 🚀 功能:
|
## 🚀 功能:
|
||||||
|
|
||||||
- 自动调度海量的 goroutines,复用 goroutines
|
- 自动调度海量的 goroutines,复用 goroutines
|
||||||
- 定时清理过期的 goroutines,进一步节省资源
|
- 定期清理过期的 goroutines,进一步节省资源
|
||||||
- 提供了友好的接口:任务提交、获取运行中的 goroutine 数量、动态调整 goroutine 池大小
|
- 提供了大量有用的接口:任务提交、获取运行中的 goroutine 数量、动态调整 goroutine 池大小
|
||||||
- 优雅处理 panic,防止程序崩溃
|
- 优雅处理 panic,防止程序崩溃
|
||||||
- 资源复用,极大节省内存使用量;在大规模批量并发任务场景下比原生 goroutine 并发具有[更高的性能](#-性能小结)
|
- 资源复用,极大节省内存使用量;在大规模批量并发任务场景下比原生 goroutine 并发具有[更高的性能](#-性能小结)
|
||||||
- 非阻塞机制
|
- 非阻塞机制
|
||||||
|
|
Loading…
Reference in New Issue