mirror of https://github.com/panjf2000/ants.git
Merge branch 'develop'
This commit is contained in:
commit
c14cca5e76
|
@ -106,7 +106,7 @@ func main() {
|
|||
## Submit tasks
|
||||
Tasks can be submitted by calling `ants.Submit(func())`
|
||||
```go
|
||||
ants.Submit(func() {})
|
||||
ants.Submit(func() error {})
|
||||
```
|
||||
|
||||
## Custom limited pool
|
||||
|
|
|
@ -115,7 +115,7 @@ ants.Submit(func() error {})
|
|||
// set 10000 the size of goroutine pool
|
||||
p, _ := ants.NewPool(10000)
|
||||
// submit a task
|
||||
p.Submit(func() {})
|
||||
p.Submit(func() error {})
|
||||
```
|
||||
|
||||
## 动态调整协程池容量
|
||||
|
|
Loading…
Reference in New Issue