From 5776f41c0d8f542498744703a0c0177f99fd299e Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Tue, 24 Jul 2018 21:56:20 +0800 Subject: [PATCH] Merge branch 'develop' --- README.md | 2 +- README_ZH.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2780dcb..e93ddce 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ func main() { ## Submit tasks Tasks can be submitted by calling `ants.Submit(func())` ```go -ants.Submit(func() {}) +ants.Submit(func() error {}) ``` ## Custom limited pool diff --git a/README_ZH.md b/README_ZH.md index d885f3d..1ba7098 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -115,7 +115,7 @@ ants.Submit(func() error {}) // set 10000 the size of goroutine pool p, _ := ants.NewPool(10000) // submit a task -p.Submit(func() {}) +p.Submit(func() error {}) ``` ## 动态调整协程池容量