From 315bac653ec99a00abff62259c2026435359914b Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Tue, 19 Feb 2019 20:15:25 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=95=8A=20Renew=20the=20example=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/main.go b/examples/main.go index bbd2b1e..5082f54 100644 --- a/examples/main.go +++ b/examples/main.go @@ -73,7 +73,7 @@ func main() { // Submit tasks one by one. for i := 0; i < runTimes; i++ { wg.Add(1) - p.Serve(int32(i)) + p.Invoke(int32(i)) } wg.Wait() fmt.Printf("running goroutines: %d\n", p.Running())