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

Function event

test/parallel/test-http2-backpressure.js:43–47  ·  view source on GitHub ↗
(ee, eventName)

Source from the content-addressed store, hash-verified

41}
42
43function event(ee, eventName) {
44 return new Promise((resolve) => {
45 ee.once(eventName, common.mustCall(resolve));
46 });
47}
48
49function mustCall(fn, exact) {
50 return common.mustCall((...args) => {

Callers 1

Calls 1

onceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…