From 31e4bacafa8f46d5ee2e015200f5f7037d3e731e Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 16 Nov 2023 18:50:09 +0100 Subject: [PATCH] refactor: refine TS example MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- examples/typescript/pool.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/typescript/pool.ts b/examples/typescript/pool.ts index 3d9d9e6f..de49c93a 100644 --- a/examples/typescript/pool.ts +++ b/examples/typescript/pool.ts @@ -38,3 +38,9 @@ export const dynamicPool = new DynamicThreadPool>( } } ) + +// eslint-disable-next-line @typescript-eslint/no-misused-promises +setTimeout(async () => { + await fixedPool.destroy() + await dynamicPool.destroy() +}, 3000) -- 2.34.1