X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fpool.ts;h=de49c93ad6f8c73bc3cfaa680a78134cdd8daa56;hb=6a5f7992e88975427ab30dcd774b86a0127c5bdd;hp=3d9d9e6f482723cdb634e98bd02a9bbd46df3314;hpb=c6f65aba7358678dc93cd04b573268564c5281d1;p=poolifier.git 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)