repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build(deps-dev): bump eslint from 9.4.0 to 9.5.0
[poolifier.git]
/
examples
/
typescript
/
pool.ts
diff --git
a/examples/typescript/pool.ts
b/examples/typescript/pool.ts
index 3965e1f0a1cd4c8e2632b59018972e79fa5b798e..1be0691a7aa7bf42423530d25d82994e4ce7fa6e 100644
(file)
--- a/
examples/typescript/pool.ts
+++ b/
examples/typescript/pool.ts
@@
-4,7
+4,7
@@
import { fileURLToPath } from 'node:url'
import {
availableParallelism,
DynamicThreadPool,
import {
availableParallelism,
DynamicThreadPool,
- FixedThreadPool
+ FixedThreadPool
,
} from 'poolifier'
import type { MyData, MyResponse } from './worker.js'
} from 'poolifier'
import type { MyData, MyResponse } from './worker.js'
@@
-23,7
+23,7
@@
const fixedPool = new FixedThreadPool<MyData, MyResponse>(
},
errorHandler: (e: Error) => {
console.error(e)
},
errorHandler: (e: Error) => {
console.error(e)
- }
+ }
,
}
)
}
)
@@
-39,7
+39,7
@@
const dynamicPool = new DynamicThreadPool<MyData, MyResponse>(
},
errorHandler: (e: Error) => {
console.error(e)
},
errorHandler: (e: Error) => {
console.error(e)
- }
+ }
,
}
)
}
)