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

Function emitReadable

static/word2md/mammoth.browser.js:24574–24582  ·  view source on GitHub ↗
(stream)

Source from the content-addressed store, hash-verified

24572// another read() call => stack overflow. This way, it might trigger
24573// a nextTick recursion warning, but that's not so bad.
24574function emitReadable(stream) {
24575 var state = stream._readableState;
24576 state.needReadable = false;
24577 if (!state.emittedReadable) {
24578 debug('emitReadable', state.flowing);
24579 state.emittedReadable = true;
24580 if (state.sync) processNextTick(emitReadable_, stream);else emitReadable_(stream);
24581 }
24582}
24583
24584function emitReadable_(stream) {
24585 debug('emit readable');

Callers 3

readableAddChunkFunction · 0.70
mammoth.browser.jsFile · 0.70
onEofChunkFunction · 0.70

Calls 1

emitReadable_Function · 0.70

Tested by

no test coverage detected