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

Function pipeOnDrain

static/word2md/mammoth.browser.js:24755–24765  ·  view source on GitHub ↗
(src)

Source from the content-addressed store, hash-verified

24753};
24754
24755function pipeOnDrain(src) {
24756 return function () {
24757 var state = src._readableState;
24758 debug('pipeOnDrain', state.awaitDrain);
24759 if (state.awaitDrain) state.awaitDrain--;
24760 if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {
24761 state.flowing = true;
24762 flow(src);
24763 }
24764 };
24765}
24766
24767Readable.prototype.unpipe = function (dest) {
24768 var state = this._readableState;

Callers 1

mammoth.browser.jsFile · 0.70

Calls 2

EElistenerCountFunction · 0.85
flowFunction · 0.70

Tested by

no test coverage detected