worker.postMessage(value[, transferList])


向将通过 require('worker_threads').parentPort.on('message') 接收的工作线程发送消息。 有关详细信息,请参阅 port.postMessage()

Send a message to the worker that will be received via require('worker_threads').parentPort.on('message'). See port.postMessage() for more details.