From a7baafa56a2350593ce34e0db064527de0cf302c Mon Sep 17 00:00:00 2001 From: Stephen Cresswell <229672+cressie176@users.noreply.github.com> Date: Sun, 27 Aug 2023 07:42:01 +0100 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 677228b..c736dae 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,8 @@ const CustomResourceFactory = require("./CustomResourceFactory"); const factory = new CustomResourceFactory(); const pool = new Pool({ factory, acquireTimeout: 5000, destroyTimeout: 5000 }); -// Recommended since it prevents bad resources gradually filling up your pool allocation / leaking memory -// However, could also lead to exceeding the maxSize configuration option +// Recommended since it prevents bad resources gradually filling up your pool allocation / leaking memory. +// However, could also lead to creating more resources than allowed by the maxSize configuration option, pool.on(DestroyResourceOperation.FAILED, () => { pool.evictBadResources(); });