X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fworker.ts;h=ff75fb44f3b15707a7b27f76b00fa2937a8044ac;hb=138cda236c840c18c6234bc426e95f4b53a5e2d2;hp=4b3c4e4520d15bce0cf6749973414d0afa063e57;hpb=87a12b1289a70e4b26f2ea40ba3cbfc2ad4d97ea;p=poolifier.git diff --git a/examples/typescript/worker.ts b/examples/typescript/worker.ts index 4b3c4e45..ff75fb44 100644 --- a/examples/typescript/worker.ts +++ b/examples/typescript/worker.ts @@ -12,7 +12,7 @@ export interface MyResponse { class MyThreadWorker extends ThreadWorker> { constructor () { super(data => this.process(data), { - maxInactiveTime: 60_000, + maxInactiveTime: 60000, async: true }) }