Merge branch 'develop'

This commit is contained in:
Andy Pan 2018-07-24 21:56:20 +08:00
parent f0d16c0b0a
commit 5776f41c0d
2 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ func main() {
## Submit tasks ## Submit tasks
Tasks can be submitted by calling `ants.Submit(func())` Tasks can be submitted by calling `ants.Submit(func())`
```go ```go
ants.Submit(func() {}) ants.Submit(func() error {})
``` ```
## Custom limited pool ## Custom limited pool

View File

@ -115,7 +115,7 @@ ants.Submit(func() error {})
// set 10000 the size of goroutine pool // set 10000 the size of goroutine pool
p, _ := ants.NewPool(10000) p, _ := ants.NewPool(10000)
// submit a task // submit a task
p.Submit(func() {}) p.Submit(func() error {})
``` ```
## 动态调整协程池容量 ## 动态调整协程池容量