From 6851895376edb834dfbff4e097c1ba6f4a274dda Mon Sep 17 00:00:00 2001 From: Andy Pan Date: Mon, 19 Aug 2019 16:16:42 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9DUpdate=20example=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/main.go b/examples/main.go index 5082f54..773abd6 100644 --- a/examples/main.go +++ b/examples/main.go @@ -57,7 +57,7 @@ func main() { } for i := 0; i < runTimes; i++ { wg.Add(1) - ants.Submit(syncCalculateSum) + _ = ants.Submit(syncCalculateSum) } wg.Wait() fmt.Printf("running goroutines: %d\n", ants.Running()) @@ -73,7 +73,7 @@ func main() { // Submit tasks one by one. for i := 0; i < runTimes; i++ { wg.Add(1) - p.Invoke(int32(i)) + _ = p.Invoke(int32(i)) } wg.Wait() fmt.Printf("running goroutines: %d\n", p.Running())