MCPcopy Index your code
hub / github.com/nodejs/node / callFinishedCallbacks

Function callFinishedCallbacks

lib/internal/streams/writable.js:973–984  ·  view source on GitHub ↗
(state, err)

Source from the content-addressed store, hash-verified

971}
972
973function callFinishedCallbacks(state, err) {
974 if ((state[kState] & kOnFinished) === 0) {
975 return;
976 }
977
978 const onfinishCallbacks = state[kOnFinishedValue];
979 state[kOnFinishedValue] = null;
980 state[kState] &= ~kOnFinished;
981 for (let i = 0; i < onfinishCallbacks.length; i++) {
982 onfinishCallbacks[i](err);
983 }
984}
985
986ObjectDefineProperties(Writable.prototype, {
987 closed: {

Callers 3

errorBufferFunction · 0.85
onFinishFunction · 0.85
finishFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…