method Worker.prototype.postMessage
Usage in Deno
import { Worker } from "node:worker_threads";
Worker.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.
optional
transferList: readonly TransferListItem[]
void