From 2fef3ca1f7207f7b8b87f9e4de51a144419efa73 Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Sat, 26 May 2018 17:26:36 +0800 Subject: [PATCH] update - --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7133b19..a0d646b 100644 --- a/README.md +++ b/README.md @@ -98,9 +98,9 @@ func main() { ``` ## Submit tasks -Tasks can be submitted by calling `ants.Push(func())` +Tasks can be submitted by calling `ants.Submit(func())` ```go -ants.Push(func() {}) +ants.Submit(func() {}) ``` ## Custom limited pool @@ -110,7 +110,7 @@ Ants also supports custom limited pool. You can use the `NewPool` method to crea // set 10000 the size of goroutine pool p, _ := ants.NewPool(10000) // submit a task -p.Push(func() {}) +p.Submit(func() {}) ``` ## Readjusting pool capacity