mirror of
https://github.com/panjf2000/ants.git
synced 2025-12-17 18:51:02 +00:00
update readme
This commit is contained in:
parent
08469e8dc2
commit
4237f29584
@ -99,7 +99,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Integrate with http server
|
## Integrates with http server
|
||||||
```go
|
```go
|
||||||
package main
|
package main
|
||||||
|
|
||||||
@ -170,7 +170,7 @@ p, _ := ants.NewPool(10000)
|
|||||||
p.Submit(func(){})
|
p.Submit(func(){})
|
||||||
```
|
```
|
||||||
|
|
||||||
## Tuning pool capacity
|
## Tunes pool capacity
|
||||||
You can change `ants` pool capacity at any time with `ReSize(int)`:
|
You can change `ants` pool capacity at any time with `ReSize(int)`:
|
||||||
|
|
||||||
``` go
|
``` go
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user