repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: move message channel property from worker info to node
[poolifier.git]
/
src
/
pools
/
worker.ts
diff --git
a/src/pools/worker.ts
b/src/pools/worker.ts
index 5ac90fbf1783e9e04a7e820e37c961e8527385ff..09253242f7d0af88204ba9989fb37a7fa12cc287 100644
(file)
--- a/
src/pools/worker.ts
+++ b/
src/pools/worker.ts
@@
-141,10
+141,6
@@
export interface WorkerInfo {
* Task function names.
*/
taskFunctions?: string[]
* Task function names.
*/
taskFunctions?: string[]
- /**
- * Message channel.
- */
- messageChannel?: MessageChannel
}
/**
}
/**
@@
-215,6
+211,10
@@
export interface IWorkerNode<Worker extends IWorker, Data = unknown> {
* Worker info.
*/
readonly info: WorkerInfo
* Worker info.
*/
readonly info: WorkerInfo
+ /**
+ * Message channel.
+ */
+ readonly messageChannel?: MessageChannel
/**
* Worker usage statistics.
*/
/**
* Worker usage statistics.
*/
@@
-247,7
+247,7
@@
export interface IWorkerNode<Worker extends IWorker, Data = unknown> {
*/
readonly resetUsage: () => void
/**
*/
readonly resetUsage: () => void
/**
- * Close communication channel.
+ * Close
s
communication channel.
*/
readonly closeChannel: () => void
/**
*/
readonly closeChannel: () => void
/**