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