Add activity diagrams

This commit is contained in:
Andy Pan 2020-05-24 13:10:08 +08:00
parent 5057293d76
commit 1d11f39375
2 changed files with 26 additions and 2 deletions

View File

@ -37,12 +37,24 @@ Library `ants` implements a goroutine pool with fixed capacity, managing and rec
- 1.12.x
- 1.13.x
## 💡 `ants` works as the flowing flowchart
## 💡 How `ants` works
### Flow Diagram
<p align="center">
<img width="1011" alt="ants-flowchart-en" src="https://user-images.githubusercontent.com/7496278/66396509-7b42e700-ea0c-11e9-8612-b71a4b734683.png">
</p>
### Activity Diagrams
![](https://raw.githubusercontent.com/panjf2000/illustrations/master/go/ants-pool-1.png)
![](https://raw.githubusercontent.com/panjf2000/illustrations/master/go/ants-pool-2.png)
![](https://raw.githubusercontent.com/panjf2000/illustrations/master/go/ants-pool-3.png)
![](https://raw.githubusercontent.com/panjf2000/illustrations/master/go/ants-pool-4.png)
## 🧰 How to install
### For `ants` v1

View File

@ -37,12 +37,24 @@
- 1.12.x
- 1.13.x
## 💡 `ants` 运行时的流程图如下
## 💡 `ants` 是如何运行的
### 流程图
<p align="center">
<img width="845" alt="ants-flowchart-cn" src="https://user-images.githubusercontent.com/7496278/66396519-7ed66e00-ea0c-11e9-9c1a-5ca54bbd61eb.png">
</p>
### 动态图
![](https://raw.githubusercontent.com/panjf2000/illustrations/master/go/ants-pool-1.png)
![](https://raw.githubusercontent.com/panjf2000/illustrations/master/go/ants-pool-2.png)
![](https://raw.githubusercontent.com/panjf2000/illustrations/master/go/ants-pool-3.png)
![](https://raw.githubusercontent.com/panjf2000/illustrations/master/go/ants-pool-4.png)
## 🧰 安装
### 使用 `ants` v1 版本: