Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cressie176 authored Aug 27, 2023
1 parent 25dfe3e commit 78c83e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const CustomResourceFactory = require("./CustomResourceFactory");
const factory = new CustomResourceFactory();
const pool = new Pool({ factory, acquireTimeout: 5000, destroyTimeout: 5000 });

// Optional, but prevents bad resources gradually filling up your pool allocation / leaking memory
// Recommended since it prevents bad resources gradually filling up your pool allocation / leaking memory
// However, could also lead to exceeding the minSize configuration option
pool.on(DestroyResourceOperation.FAILED, () => {
pool.evictBadResources();
});
Expand Down

0 comments on commit 78c83e1

Please sign in to comment.