From 6b430be593a6db57217a2c7d02915f41ce08e305 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Mon, 16 Oct 2023 22:24:01 +0200 Subject: [PATCH] refactor: cleanup TS example MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- examples/typescript/worker.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 }) } -- 2.34.1