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

Method on

deps/undici/src/lib/api/readable.js:111–117  ·  view source on GitHub ↗

* @param {string|symbol} event * @param {(...args: any[]) => void} listener * @returns {this}

(event, listener)

Source from the content-addressed store, hash-verified

109 * @returns {this}
110 */
111 on (event, listener) {
112 if (event === 'data' || event === 'readable') {
113 this[kReading] = true
114 this[kUsed] = true
115 }
116 return super.on(event, listener)
117 }
118
119 /**
120 * @param {string|symbol} event

Callers 15

addListenerMethod · 0.95
dumpMethod · 0.95
constructorMethod · 0.45
constructorMethod · 0.45
connectH1Function · 0.45
destroyFunction · 0.45
writeStreamFunction · 0.45
writeIterableFunction · 0.45
[kAddClient]Method · 0.45
connectFunction · 0.45
addUpstreamMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected