X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fworker.ts;h=81d39df3c9eb5c34019dfeeca6e2ab495f6fc982;hb=15d7c4891697c3ec4c0402886154fbb962a20717;hp=adc8c4345ca1ead79eec6d31507e7fc07e53f7af;hpb=f33d3b695acf3a30d0b9988c211166c916aca0c5;p=poolifier.git diff --git a/examples/typescript/worker.ts b/examples/typescript/worker.ts index adc8c434..81d39df3 100644 --- a/examples/typescript/worker.ts +++ b/examples/typescript/worker.ts @@ -13,8 +13,7 @@ class MyThreadWorker extends ThreadWorker> { constructor () { // eslint-disable-next-line @typescript-eslint/promise-function-async super((data: MyData) => this.process(data), { - maxInactiveTime: 60000, - async: true + maxInactiveTime: 60000 }) }