repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ensure all commands are always run in lint-and-format
[poolifier.git]
/
examples
/
typescript
/
pool.ts
diff --git
a/examples/typescript/pool.ts
b/examples/typescript/pool.ts
index 96b861c44bf2127f1d9d55c521cfb4e244590dc7..50dcc7b779d7118b27f42c56136fca509d58a7f6 100644
(file)
--- a/
examples/typescript/pool.ts
+++ b/
examples/typescript/pool.ts
@@
-1,7
+1,8
@@
-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'),