Skip to content

Commit

Permalink
docs: mention explicitly about pool.destroy()
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio committed Nov 23, 2023
1 parent 999778e commit 56ff1d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ const pool = new Tinypool({
})
const result = await pool.run({ a: 4, b: 6 })
console.log(result) // Prints 10

// Make sure to destroy pool once it's not needed anymore
// This terminates all pool's idle workers
await pool.destroy()
```
```js
Expand Down

0 comments on commit 56ff1d2

Please sign in to comment.