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

Function waitForEvent

test/parallel/test-worker-debug.js:45–47  ·  view source on GitHub ↗
(emitter, event)

Source from the content-addressed store, hash-verified

43}
44
45function waitForEvent(emitter, event) {
46 return new Promise((resolve) => emitter.once(event, resolve));
47}
48
49function waitForWorkerAttach(session) {
50 return waitForEvent(session, 'NodeWorker.attachedToWorker')

Callers 5

waitForWorkerAttachFunction · 0.70
waitForWorkerDetachFunction · 0.70
testBasicWorkerDebugFunction · 0.70

Calls 1

onceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…