X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fpool.ts;h=96b861c44bf2127f1d9d55c521cfb4e244590dc7;hb=0289646090c766a451aab11e7ab67a65f07221e4;hp=50dcc7b779d7118b27f42c56136fca509d58a7f6;hpb=784b79b089f970e88dd559ed242347d4e86339e5;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'),