X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fworker.ts;h=562b21477e31dd1aaa603a087eb33d3c92b4b130;hb=68bbb0e81bd4d15cc43270a7fa0101f83d94893f;hp=adc8c4345ca1ead79eec6d31507e7fc07e53f7af;hpb=f33d3b695acf3a30d0b9988c211166c916aca0c5;p=poolifier.git diff --git a/examples/typescript/worker.ts b/examples/typescript/worker.ts index adc8c434..562b2147 100644 --- a/examples/typescript/worker.ts +++ b/examples/typescript/worker.ts @@ -11,10 +11,8 @@ export interface MyResponse { class MyThreadWorker extends ThreadWorker> { constructor () { - // eslint-disable-next-line @typescript-eslint/promise-function-async - super((data: MyData) => this.process(data), { - maxInactiveTime: 60000, - async: true + super(async (data: MyData) => await this.process(data), { + maxInactiveTime: 60000 }) }