build(deps-dev): apply updates
[poolifier.git] / examples / typescript / pool.ts
index 3965e1f0a1cd4c8e2632b59018972e79fa5b798e..1be0691a7aa7bf42423530d25d82994e4ce7fa6e 100644 (file)
@@ -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<MyData, MyResponse>(
     },
     errorHandler: (e: Error) => {
       console.error(e)
-    }
+    },
   }
 )
 
@@ -39,7 +39,7 @@ const dynamicPool = new DynamicThreadPool<MyData, MyResponse>(
     },
     errorHandler: (e: Error) => {
       console.error(e)
-    }
+    },
   }
 )