mirror of
https://github.com/panjf2000/ants.git
synced 2025-12-16 18:11:03 +00:00
update readme
This commit is contained in:
parent
b1e4d22aea
commit
8e369baa4c
@ -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() {})
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user