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