repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: add task tunctions handling on the pool side
[poolifier.git]
/
src
/
worker
/
thread-worker.ts
diff --git
a/src/worker/thread-worker.ts
b/src/worker/thread-worker.ts
index 8d30ef21a8874dcfb6802e2436a7d6033a4fa8ec..ede0b3b5602f6335e2fc0c3409a719fd5edbf5b6 100644
(file)
--- a/
src/worker/thread-worker.ts
+++ b/
src/worker/thread-worker.ts
@@
-62,13
+62,13
@@
export class ThreadWorker<
this.port.on('message', this.messageListener.bind(this))
this.sendToMainWorker({
ready: true,
this.port.on('message', this.messageListener.bind(this))
this.sendToMainWorker({
ready: true,
- taskFunction
s: this.listTaskFunction
s(),
+ taskFunction
Names: this.listTaskFunctionName
s(),
workerId: this.id
})
} catch {
this.sendToMainWorker({
ready: false,
workerId: this.id
})
} catch {
this.sendToMainWorker({
ready: false,
- taskFunction
s: this.listTaskFunction
s(),
+ taskFunction
Names: this.listTaskFunctionName
s(),
workerId: this.id
})
}
workerId: this.id
})
}