method Worker.prototype.postMessageToThread
Worker.prototype.postMessageToThread(threadId: number,value: any,timeout?: number,): Promise<void>
Deprecated
Sends a value to another worker, identified by its thread ID.
The target thread ID. If the thread ID is invalid, a ERR_WORKER_MESSAGING_FAILED
error will be thrown.
If the target thread ID is the current thread ID, a ERR_WORKER_MESSAGING_SAME_THREAD
error will be thrown.
Promise<void>