From 0ee85b0a1ea70c5c57922c5984929a4474284aea Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Wed, 11 Dec 2024 21:13:42 +0800 Subject: [PATCH] chore: update READMEs --- README.md | 6 ++++++ README_ZH.md | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index 14bb782..40f1ca8 100644 --- a/README.md +++ b/README.md @@ -283,6 +283,12 @@ p, _ := ants.NewPool(100000, ants.WithPreAlloc(true)) pool.Release() ``` +or + +```go +pool.ReleaseTimeout(time.Second * 3) +``` + ### Reboot Pool ```go diff --git a/README_ZH.md b/README_ZH.md index 64883c0..20e03ff 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -284,6 +284,12 @@ p, _ := ants.NewPool(100000, ants.WithPreAlloc(true)) pool.Release() ``` +或者 + +```go +pool.ReleaseTimeout(time.Second * 3) +``` + ### 重启 Pool ```go