From 78c83e1ecb761f37f03025386a23a95c66007f68 Mon Sep 17 00:00:00 2001 From: Stephen Cresswell <229672+cressie176@users.noreply.github.com> Date: Sun, 27 Aug 2023 07:41:18 +0100 Subject: [PATCH] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index aeba1ee..7a8dc53 100644 --- a/README.md +++ b/README.md @@ -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(); });