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

Function finish

lib/internal/child_process.js:952–958  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

950
951 let fired = false;
952 function finish() {
953 if (fired) return;
954 fired = true;
955
956 channel.close();
957 target.emit('disconnect');
958 }
959
960 // If a message is being read, then wait for it to complete.
961 if (channel.buffering) {

Callers 1

constructorMethod · 0.50

Calls 2

closeMethod · 0.65
emitMethod · 0.45

Tested by

no test coverage detected