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