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

Function waitForWorkerAttach

test/parallel/test-worker-debug.js:49–52  ·  view source on GitHub ↗
(session)

Source from the content-addressed store, hash-verified

47}
48
49function waitForWorkerAttach(session) {
50 return waitForEvent(session, 'NodeWorker.attachedToWorker')
51 .then(({ params }) => params);
52}
53
54async function waitForWorkerDetach(session, id) {
55 let sessionId;

Callers 4

testBasicWorkerDebugFunction · 0.85
testNoWaitOnStartFunction · 0.85
testTwoWorkersFunction · 0.85

Calls 2

waitForEventFunction · 0.70
thenMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…