import { availableParallelism } from 'poolifier'
+
import { httpClientPool } from './pool.js'
import type { WorkerResponse } from './types.js'
const responses = await Promise.all(httpClientPoolPromises)
const elapsedTime = performance.now() - now
console.info(
- `Received in ${elapsedTime.toFixed(2)}ms an array with ${
- responses.length
- } responses from ${parallelism} parallel requests made with HTTP client pool task function ${workerFunction} on ${requestUrl}:\n`,
+ `Received in ${elapsedTime.toFixed(
+ 2
+ )}ms an array with ${responses.length.toString()} responses from ${parallelism.toString()} parallel requests made with HTTP client pool task function ${workerFunction} on ${requestUrl}:\n`,
responses
)
} catch (error) {