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