MCPcopy
hub / github.com/BrainJS/brain.js / needFinish

Function needFinish

browser.js:25456–25458  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

25454};
25455
25456function needFinish(state) {
25457 return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;
25458}
25459function callFinal(stream, state) {
25460 stream._final(function (err) {
25461 state.pendingcb--;

Callers 2

onwriteFunction · 0.70
finishMaybeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected