From 3e6386d097a4916b89e2cbc48a76b0fc9238fc23 Mon Sep 17 00:00:00 2001 From: andy pan Date: Fri, 6 Jul 2018 14:47:25 +0800 Subject: [PATCH] update example codes --- examples/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/main.go b/examples/main.go index 53ef719..c9b6aae 100644 --- a/examples/main.go +++ b/examples/main.go @@ -67,7 +67,7 @@ func main() { // use the pool with a function // set 10 the size of goroutine pool - p, _ := ants.NewPoolWithFunc(10, func(i interface{}) error { + p, _ := ants.NewPoolWithFunc(10, 1, func(i interface{}) error { myFunc(i) wg.Done() return nil