method Worker.prototype.postMessage
Jump to headingWorker.prototype.postMessage(value: any,transferList?: readonly TransferListItem[],): void
Send a message to the worker that is received via require('node:worker_threads').parentPort.on('message')
.
See port.postMessage()
for more details.
Parameters Jump to heading
Jump to headingvalue: any
optional
Jump to headingtransferList: readonly TransferListItem[]
Return Type Jump to heading
void