forked from mirror/ants
Merge branch 'develop'
This commit is contained in:
commit
09c0a55081
|
@ -113,7 +113,7 @@ ants.Submit(func() {})
|
||||||
|
|
||||||
``` go
|
``` go
|
||||||
// set 10000 the size of goroutine pool and 1 second for expired duration
|
// 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
|
// submit a task
|
||||||
p.Submit(func() {})
|
p.Submit(func() {})
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue