Skip to content

Commit

Permalink
docs: mention explicitly about pool.destroy() (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
AriPerkkio authored Nov 24, 2023
1 parent e79c650 commit 00a9f2c
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 00a9f2c

Please sign in to comment.