X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fworker.ts;h=562b21477e31dd1aaa603a087eb33d3c92b4b130;hb=c015468f32f72816c05604393e344e2d174976d6;hp=81d39df3c9eb5c34019dfeeca6e2ab495f6fc982;hpb=6677a3d36e9e7241c54db7cd69daa40f52fcbcb3;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 }) }