X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=examples%2Ftypescript%2Fworker.ts;h=ff75fb44f3b15707a7b27f76b00fa2937a8044ac;hb=cd381f80d98945c9496db96441b8e889c791f92d;hp=4b3c4e4520d15bce0cf6749973414d0afa063e57;hpb=cf9aa6c3340ad00792aa3c5e1a9d047cd0140fc2;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 }) }