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

Function waitForDrain

lib/internal/streams/iter/classic.js:519–524  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

517 }
518
519 function waitForDrain() {
520 const { promise, resolve, reject } = PromiseWithResolvers();
521 ArrayPrototypePush(waiters, { __proto__: null, resolve, reject });
522 installListeners();
523 return promise;
524 }
525
526 function isWritable() {
527 // Duck-typed streams may not have these properties -- treat missing

Callers 2

writeFunction · 0.70
writevFunction · 0.70

Calls 1

installListenersFunction · 0.70

Tested by

no test coverage detected