X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fhttp-client%2Fsrc%2Fmain.ts;h=067aa2d23668d8068efa55dbce1fdf570743193a;hb=7e80208e7b0ef86674762cdcbe158dec46666bb5;hp=a19ed2806adea97750a8ec31e47253a8fb728411;hpb=a93426dcf91e5cd2ff0182d379d91ca18af1a2cd;p=poolifier.git diff --git a/examples/typescript/http-client/src/main.ts b/examples/typescript/http-client/src/main.ts index a19ed280..067aa2d2 100644 --- a/examples/typescript/http-client/src/main.ts +++ b/examples/typescript/http-client/src/main.ts @@ -5,11 +5,11 @@ import { type WorkerResponse } from './types.js' const parallelism = availableParallelism() const requestUrl = 'http://localhost:8080/' -for (const workerFunction of ['node_fetch', 'fetch']) { +for (const workerFunction of ['node_fetch', 'fetch', 'axios']) { const fetchPoolPromises = new Set>() for (let i = 0; i < availableParallelism(); i++) { fetchPoolPromises.add( - fetchPool.execute({ url: requestUrl }, workerFunction) + fetchPool.execute({ input: requestUrl }, workerFunction) ) } try {