MCPcopy Index your code
hub / github.com/nodejs/node / workerCallback

Function workerCallback

test/parallel/test-inspector-workers-flat-list.js:40–42  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

38}
39
40function workerCallback(message) {
41 parentPort.postMessage(message);
42}
43
44function startWorker(depth, messageCallback) {
45 const worker = new Worker(__filename, { workerData: 'launched by test' });

Callers 1

runWorkerFunction · 0.85

Calls 1

postMessageMethod · 0.45

Tested by

no test coverage detected