X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fpool.ts;h=96b861c44bf2127f1d9d55c521cfb4e244590dc7;hb=e1f84f92fdcf189bb0639b9b88d192896ab118bf;hp=50dcc7b779d7118b27f42c56136fca509d58a7f6;hpb=7e00d939d448a0439a4bddbb64c06d28cb9527a0;p=poolifier.git diff --git a/examples/typescript/pool.ts b/examples/typescript/pool.ts index 50dcc7b7..96b861c4 100644 --- a/examples/typescript/pool.ts +++ b/examples/typescript/pool.ts @@ -1,8 +1,7 @@ +import { join } from 'path' import { DynamicThreadPool, FixedThreadPool } from 'poolifier' import { MyData, MyResponse } from './worker' -import { join } from 'path' - export const fixedPool = new FixedThreadPool>( 8, join(__dirname, 'worker.js'),