From: Jérôme Benoit Date: Mon, 16 Oct 2023 20:24:01 +0000 (+0200) Subject: refactor: cleanup TS example X-Git-Tag: v3.0.2~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=6b430be593a6db57217a2c7d02915f41ce08e305;p=poolifier.git refactor: cleanup TS example Signed-off-by: Jérôme Benoit --- 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 }) }