MCPcopy Create free account
hub / github.com/TruthHun/BookStack / onwriteDrain

Function onwriteDrain

static/word2md/mammoth.browser.js:25678–25683  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

25676// emit 'drain' before the write() consumer gets the 'false' return
25677// value, and has a chance to attach a 'drain' listener.
25678function onwriteDrain(stream, state) {
25679 if (state.length === 0 && state.needDrain) {
25680 state.needDrain = false;
25681 stream.emit('drain');
25682 }
25683}
25684
25685// if there's something in the buffer waiting, then process it
25686function clearBuffer(stream, state) {

Callers 1

afterWriteFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected