chore: update READMEs

This commit is contained in:
Andy Pan 2024-12-11 21:13:42 +08:00
parent 99121e2404
commit 0ee85b0a1e
2 changed files with 12 additions and 0 deletions

View File

@ -283,6 +283,12 @@ p, _ := ants.NewPool(100000, ants.WithPreAlloc(true))
pool.Release()
```
or
```go
pool.ReleaseTimeout(time.Second * 3)
```
### Reboot Pool
```go

View File

@ -284,6 +284,12 @@ p, _ := ants.NewPool(100000, ants.WithPreAlloc(true))
pool.Release()
```
或者
```go
pool.ReleaseTimeout(time.Second * 3)
```
### 重启 Pool
```go