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

Method off

deps/undici/undici.js:17133–17139  ·  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

17131 * @returns {this}
17132 */
17133 off(event, listener) {
17134 const ret = super.off(event, listener);
17135 if (event === "data" || event === "readable") {
17136 this[kReading] = this.listenerCount("data") > 0 || this.listenerCount("readable") > 0;
17137 }
17138 return ret;
17139 }
17140 /**
17141 * @param {string|symbol} event
17142 * @param {(...args: any[]) => void} listener

Callers 15

oldWayFunction · 0.45
onFinallyMethod · 0.45
writeStreamFunction · 0.45
writeIterableFunction · 0.45
onUpgradeStreamCloseFunction · 0.45
onRequestStreamCloseFunction · 0.45
onResponseFunction · 0.45
onEndFunction · 0.45
onErrorFunction · 0.45
onFrameErrorFunction · 0.45

Calls 1

listenerCountMethod · 0.80

Tested by

no test coverage detected