repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: bump volta node version
[poolifier.git]
/
examples
/
typescript
/
http-client-pool
/
src
/
pool.ts
diff --git
a/examples/typescript/http-client-pool/src/pool.ts
b/examples/typescript/http-client-pool/src/pool.ts
index 7fbb20d55ac803f0aac47dee1e287edccd234e63..6988372eb1e4e07683fd129f8a2ea2b9ea0d40e2 100644
(file)
--- a/
examples/typescript/http-client-pool/src/pool.ts
+++ b/
examples/typescript/http-client-pool/src/pool.ts
@@
-1,6
+1,8
@@
-import { fileURLToPath } from 'node:url'
import { dirname, extname, join } from 'node:path'
import { dirname, extname, join } from 'node:path'
-import { DynamicThreadPool, availableParallelism } from 'poolifier'
+import { fileURLToPath } from 'node:url'
+
+import { availableParallelism, DynamicThreadPool } from 'poolifier'
+
import type { WorkerData, WorkerResponse } from './types.js'
const workerFile = join(
import type { WorkerData, WorkerResponse } from './types.js'
const workerFile = join(
@@
-9,7
+11,7
@@
const workerFile = join(
)
export const httpClientPool = new DynamicThreadPool<WorkerData, WorkerResponse>(
)
export const httpClientPool = new DynamicThreadPool<WorkerData, WorkerResponse>(
-
1
,
+
0
,
availableParallelism(),
workerFile,
{
availableParallelism(),
workerFile,
{