mirror of https://github.com/panjf2000/ants.git
chore: update READMEs
This commit is contained in:
parent
99121e2404
commit
0ee85b0a1e
|
@ -283,6 +283,12 @@ p, _ := ants.NewPool(100000, ants.WithPreAlloc(true))
|
|||
pool.Release()
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```go
|
||||
pool.ReleaseTimeout(time.Second * 3)
|
||||
```
|
||||
|
||||
### Reboot Pool
|
||||
|
||||
```go
|
||||
|
|
|
@ -284,6 +284,12 @@ p, _ := ants.NewPool(100000, ants.WithPreAlloc(true))
|
|||
pool.Release()
|
||||
```
|
||||
|
||||
或者
|
||||
|
||||
```go
|
||||
pool.ReleaseTimeout(time.Second * 3)
|
||||
```
|
||||
|
||||
### 重启 Pool
|
||||
|
||||
```go
|
||||
|
|
Loading…
Reference in New Issue