worker.postMessage(value[, transferList])


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

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