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

Function endWritable

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

Source from the content-addressed store, hash-verified

25796}
25797
25798function endWritable(stream, state, cb) {
25799 state.ending = true;
25800 finishMaybe(stream, state);
25801 if (cb) {
25802 if (state.finished) processNextTick(cb);else stream.once('finish', cb);
25803 }
25804 state.ended = true;
25805 stream.writable = false;
25806}
25807
25808// It seems a linked list but it is not
25809// there will be only 2 of these for each stream

Callers 1

mammoth.browser.jsFile · 0.70

Calls 1

finishMaybeFunction · 0.70

Tested by

no test coverage detected