🕊 Renew the example code

This commit is contained in:
Andy Pan 2019-02-19 20:15:25 +08:00
parent 59a12f4593
commit 315bac653e
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ func main() {
// Submit tasks one by one. // Submit tasks one by one.
for i := 0; i < runTimes; i++ { for i := 0; i < runTimes; i++ {
wg.Add(1) wg.Add(1)
p.Serve(int32(i)) p.Invoke(int32(i))
} }
wg.Wait() wg.Wait()
fmt.Printf("running goroutines: %d\n", p.Running()) fmt.Printf("running goroutines: %d\n", p.Running())