+ }
+
+ /** @inheritDoc */
+ protected handleReadyMessage (message: MessageValue<Data>): void {
+ if (message.workerId === this.id && message.ready === false) {
+ try {
+ this.getMainWorker()?.on('message', this.messageListener.bind(this))
+ this.sendTaskFunctionsListToMainWorker()
+ this.sendToMainWorker({ ready: true, workerId: this.id })
+ } catch {
+ this.sendToMainWorker({ ready: false, workerId: this.id })
+ }