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

Function maybeReadMore

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

Source from the content-addressed store, hash-verified

24594// However, if we're not ended, or reading, and the length < hwm,
24595// then go ahead and try to read some more preemptively.
24596function maybeReadMore(stream, state) {
24597 if (!state.readingMore) {
24598 state.readingMore = true;
24599 processNextTick(maybeReadMore_, stream, state);
24600 }
24601}
24602
24603function maybeReadMore_(stream, state) {
24604 var len = state.length;

Callers 1

readableAddChunkFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected