X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fpool.ts;h=1be0691a7aa7bf42423530d25d82994e4ce7fa6e;hb=467aa7afd51fa603b1c62767dc29bda3cde9e398;hp=3965e1f0a1cd4c8e2632b59018972e79fa5b798e;hpb=e1ba9765afbf97436250d19f28c818221ebc10b9;p=poolifier.git diff --git a/examples/typescript/pool.ts b/examples/typescript/pool.ts index 3965e1f0..1be0691a 100644 --- a/examples/typescript/pool.ts +++ b/examples/typescript/pool.ts @@ -4,7 +4,7 @@ import { fileURLToPath } from 'node:url' import { availableParallelism, DynamicThreadPool, - FixedThreadPool + FixedThreadPool, } from 'poolifier' import type { MyData, MyResponse } from './worker.js' @@ -23,7 +23,7 @@ const fixedPool = new FixedThreadPool( }, errorHandler: (e: Error) => { console.error(e) - } + }, } ) @@ -39,7 +39,7 @@ const dynamicPool = new DynamicThreadPool( }, errorHandler: (e: Error) => { console.error(e) - } + }, } )