mirror of
https://github.com/panjf2000/ants.git
synced 2025-12-16 18:11:03 +00:00
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()
|
pool.Release()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
```go
|
||||||
|
pool.ReleaseTimeout(time.Second * 3)
|
||||||
|
```
|
||||||
|
|
||||||
### Reboot Pool
|
### Reboot Pool
|
||||||
|
|
||||||
```go
|
```go
|
||||||
|
|||||||
@ -284,6 +284,12 @@ p, _ := ants.NewPool(100000, ants.WithPreAlloc(true))
|
|||||||
pool.Release()
|
pool.Release()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
或者
|
||||||
|
|
||||||
|
```go
|
||||||
|
pool.ReleaseTimeout(time.Second * 3)
|
||||||
|
```
|
||||||
|
|
||||||
### 重启 Pool
|
### 重启 Pool
|
||||||
|
|
||||||
```go
|
```go
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user