repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge dependabot/npm_and_yarn/examples/typescript/websocket-server-pool/ws-worker_thr...
[poolifier.git]
/
src
/
worker
/
thread-worker.ts
diff --git
a/src/worker/thread-worker.ts
b/src/worker/thread-worker.ts
index 7b92caf67201795797f6e3e06fff4fc593f4ee94..d5ce3a2f130da3efbe81f0aa0e3b3e7394033822 100644
(file)
--- a/
src/worker/thread-worker.ts
+++ b/
src/worker/thread-worker.ts
@@
-42,7
+42,7
@@
export class ThreadWorker<
opts: WorkerOptions = {}
) {
super(
opts: WorkerOptions = {}
) {
super(
- '
worker-thread-pool:poolifi
er',
+ '
poolifier:thread-work
er',
isMainThread,
parentPort as MessagePort,
taskFunctions,
isMainThread,
parentPort as MessagePort,
taskFunctions,
@@
-90,7
+90,10
@@
export class ThreadWorker<
this.port.postMessage({ ...message, workerId: this.id })
}
this.port.postMessage({ ...message, workerId: this.id })
}
- /** @inheritDoc */
+ /**
+ * @inheritDoc
+ * @override
+ */
protected handleError (error: Error | string): string {
return error as string
}
protected handleError (error: Error | string): string {
return error as string
}