worker.postMessage(value[, transferList])
value
<any>transferList
<Object[]>
向通过 require('node:worker_threads').parentPort.on('message')
接收到的工作线程发送消息。
有关详细信息,请参阅 port.postMessage()
。
value
<any>transferList
<Object[]>
Send a message to the worker that is received via
require('node:worker_threads').parentPort.on('message')
.
See port.postMessage()
for more details.