repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Create codeql-analysis.yml
[poolifier.git]
/
examples
/
typescript
/
pool.ts
diff --git
a/examples/typescript/pool.ts
b/examples/typescript/pool.ts
index 50dcc7b779d7118b27f42c56136fca509d58a7f6..96b861c44bf2127f1d9d55c521cfb4e244590dc7 100644
(file)
--- 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 { DynamicThreadPool, FixedThreadPool } from 'poolifier'
import { MyData, MyResponse } from './worker'
-import { join } from 'path'
-
export const fixedPool = new FixedThreadPool<MyData, Promise<MyResponse>>(
8,
join(__dirname, 'worker.js'),
export const fixedPool = new FixedThreadPool<MyData, Promise<MyResponse>>(
8,
join(__dirname, 'worker.js'),