From 1d11f39375fbb6af00697db38e79b3bcdaa38186 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sun, 24 May 2020 13:10:08 +0800 Subject: [PATCH] Add activity diagrams --- README.md | 14 +++++++++++++- README_ZH.md | 14 +++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) 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 版本: