X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fsmtp-client-pool%2Fsrc%2Fpool.ts;h=2fc53c980b20b9f26590e3408382f88cd86ada62;hb=0fce423d00ff1b5714140f22ebc47484affa3d94;hp=85fb4cdf94b187753900825f02720c8c60ff9450;hpb=ef083f7bb73616d1bd9d9069471edcf6dbaec0c7;p=poolifier.git diff --git a/examples/typescript/smtp-client-pool/src/pool.ts b/examples/typescript/smtp-client-pool/src/pool.ts index 85fb4cdf..2fc53c98 100644 --- a/examples/typescript/smtp-client-pool/src/pool.ts +++ b/examples/typescript/smtp-client-pool/src/pool.ts @@ -12,7 +12,7 @@ const workerFile = join( export const smtpClientPool = new DynamicThreadPool< WorkerData, SMTPTransport.SentMessageInfo ->(1, availableParallelism(), workerFile, { +>(0, availableParallelism(), workerFile, { enableTasksQueue: true, tasksQueueOptions: { concurrency: 8