X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2Fthread-worker.ts;h=d5ce3a2f130da3efbe81f0aa0e3b3e7394033822;hb=41c732473008a79577c0920484dc17b968966bc7;hp=7b92caf67201795797f6e3e06fff4fc593f4ee94;hpb=f4d1dbd1592e24d7a09f35013c3e0f0762240254;p=poolifier.git diff --git a/src/worker/thread-worker.ts b/src/worker/thread-worker.ts index 7b92caf6..d5ce3a2f 100644 --- a/src/worker/thread-worker.ts +++ b/src/worker/thread-worker.ts @@ -42,7 +42,7 @@ export class ThreadWorker< opts: WorkerOptions = {} ) { super( - 'worker-thread-pool:poolifier', + 'poolifier:thread-worker', isMainThread, parentPort as MessagePort, taskFunctions, @@ -90,7 +90,10 @@ export class ThreadWorker< this.port.postMessage({ ...message, workerId: this.id }) } - /** @inheritDoc */ + /** + * @inheritDoc + * @override + */ protected handleError (error: Error | string): string { return error as string }