diff --git a/README.md b/README.md index 7f9f653..c472339 100644 --- a/README.md +++ b/README.md @@ -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

ants-flowchart-en

+### 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 diff --git a/README_ZH.md b/README_ZH.md index 31b1e61..c004bf0 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -37,12 +37,24 @@ - 1.12.x - 1.13.x -## 💡 `ants` 运行时的流程图如下 +## 💡 `ants` 是如何运行的 + +### 流程图

ants-flowchart-cn

+### 动态图 + +![](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 版本: