Skip to content

Commit

Permalink
chore: update READMEs
Browse files Browse the repository at this point in the history
  • Loading branch information
panjf2000 committed Dec 11, 2024
1 parent 99121e2 commit 0ee85b0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,12 @@ p, _ := ants.NewPool(100000, ants.WithPreAlloc(true))
pool.Release()
```

or

```go
pool.ReleaseTimeout(time.Second * 3)
```

### Reboot Pool

```go
Expand Down
6 changes: 6 additions & 0 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,12 @@ p, _ := ants.NewPool(100000, ants.WithPreAlloc(true))
pool.Release()
```

或者

```go
pool.ReleaseTimeout(time.Second * 3)
```

### 重启 Pool

```go
Expand Down

0 comments on commit 0ee85b0

Please sign in to comment.