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

Function afterWrite

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

Source from the content-addressed store, hash-verified

25666}
25667
25668function afterWrite(stream, state, finished, cb) {
25669 if (!finished) onwriteDrain(stream, state);
25670 state.pendingcb--;
25671 cb();
25672 finishMaybe(stream, state);
25673}
25674
25675// Must force callback to be called on nextTick, so that we don't
25676// emit 'drain' before the write() consumer gets the 'false' return

Callers 1

onwriteFunction · 0.70

Calls 3

onwriteDrainFunction · 0.70
cbFunction · 0.70
finishMaybeFunction · 0.70

Tested by

no test coverage detected