MCPcopy Create free account
hub / github.com/nodejs/node / fn

Function fn

test/sequential/test-watch-mode.mjs:822–827  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

820 async function waitForEcho(msg) {
821 const receivedPromise = new Promise((resolve) => {
822 const fn = (message) => {
823 if (message === msg) {
824 child.off('message', fn);
825 resolve();
826 }
827 };
828 child.on('message', fn);
829 });
830 child.send(msg);

Callers 2

cmpFunction · 0.70
runFunction · 0.70

Calls 4

includesMethod · 0.80
resolveFunction · 0.50
offMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected