update readme

This commit is contained in:
Andy Pan 2018-07-06 20:53:58 +08:00
parent b1e4d22aea
commit 8e369baa4c
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ ants.Submit(func() {})
``` go
// set 10000 the size of goroutine pool and 1 second for expired duration
p, _ := ants.NewPool(10000)
p, _ := ants.NewPool(10000, 1)
// submit a task
p.Submit(func() {})
```