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

Method emit

lib/events.js:165–170  ·  view source on GitHub ↗

* @param {symbol|string} event * @param {any[]} args * @returns {boolean}

(event, ...args)

Source from the content-addressed store, hash-verified

163 * @returns {boolean}
164 */
165 emit(event, ...args) {
166 const asyncResource = this.#asyncResource;
167 ArrayPrototypeUnshift(args, super.emit, this, event);
168 return ReflectApply(asyncResource.runInAsyncScope, asyncResource,
169 args);
170 }
171
172 /**
173 * @returns {void}

Callers 15

emitErrorEventFunction · 0.45
emitAbortNTFunction · 0.45
ondrainFunction · 0.45
socketCloseListenerFunction · 0.45
socketOnDataFunction · 0.45
parserOnIncomingClientFunction · 0.45
responseOnTimeoutFunction · 0.45
emitFreeNTFunction · 0.45
tickOnSocketFunction · 0.45
emitRequestTimeoutFunction · 0.45
_destroyFunction · 0.45
onSocketNTFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected