Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
protected sendStartupMessageToWorker (worker: Worker): void {
this.sendToWorker(worker, {
ready: false,
- workerId: this.getWorkerInfoByWorker(worker).id as number
+ workerId: worker.id
})
}
worker.postMessage(
{
ready: false,
- workerId: this.getWorkerInfoByWorker(worker).id as number,
+ workerId: worker.threadId,
port: port2
},
[port2]
}
}
+ /**
+ * Handles the ready message sent by the main worker.
+ *
+ * @param message - The ready message.
+ */
+ protected abstract handleReadyMessage (message: MessageValue<Data>): void
+
/**
* Worker message listener.
*
}
}
- /**
- * Handles the ready message sent by the main worker.
- *
- * @param message - The ready message.
- */
- protected abstract handleReadyMessage (message: MessageValue<Data>): void
-
/**
* Starts the worker check active interval.
*/