MCPcopy Create free account
hub / github.com/nodejs/node / #emitDrain

Method #emitDrain

lib/internal/streams/fast-utf8-stream.js:530–535  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

528 }
529
530 #emitDrain() {
531 const hasListeners = this.listenerCount('drain') > 0;
532 if (!hasListeners) return;
533 this.#asyncDrainScheduled = false;
534 this.emit('drain');
535 }
536
537 #actualClose() {
538 if (this.#fd === -1) {

Callers 1

#releaseMethod · 0.95

Calls 2

listenerCountMethod · 0.80
emitMethod · 0.45

Tested by

no test coverage detected