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

Function endWritable

browser.js:25495–25503  ·  view source on GitHub ↗
(stream, state, cb)

Source from the content-addressed store, hash-verified

25493}
25494
25495function endWritable(stream, state, cb) {
25496 state.ending = true;
25497 finishMaybe(stream, state);
25498 if (cb) {
25499 if (state.finished) pna.nextTick(cb);else stream.once('finish', cb);
25500 }
25501 state.ended = true;
25502 stream.writable = false;
25503}
25504
25505function onCorkedFinish(corkReq, state, err) {
25506 var entry = corkReq.entry;

Callers 1

browser.jsFile · 0.70

Calls 1

finishMaybeFunction · 0.70

Tested by

no test coverage detected