Skip to content

Commit 65ca245

Browse files
authored
Add release event to Pool API docs (#2928)
1 parent 0f76fb3 commit 65ca245

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: docs/pages/apis/pool.mdx

+6
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,12 @@ The error listener is passed the error as the first argument and the client upon
271271
uncaught error and potentially crash your node process.
272272
</Alert>
273273

274+
### release
275+
276+
`pool.on('release', (err: Error, client: Client) => void) => void`
277+
278+
Whenever a client is released back into the pool, the pool will emit the `release` event.
279+
274280
### remove
275281

276282
`pool.on('remove', (client: Client) => void) => void`

0 commit comments

Comments
 (0)