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

Method finish

lib/internal/debugger/inspect_probe.js:501–510  ·  view source on GitHub ↗
(exitCode, terminal)

Source from the content-addressed store, hash-verified

499 }
500
501 finish(exitCode, terminal) {
502 if (this.finished) { return; }
503 debug('finish: exitCode=%d, terminal=%s', exitCode, terminal?.event);
504 this.finished = true;
505 if (this.timeout !== null) {
506 clearTimeout(this.timeout);
507 this.timeout = null;
508 }
509 this.resolveCompletion({ exitCode, terminal });
510 }
511
512 getProbeTargetExitEvent(exitCode, signal) {
513 const pending = this.getPendingProbeIndices();

Callers 3

wasmStreamingCallbackFunction · 0.45

Calls 2

debugFunction · 0.50
clearTimeoutFunction · 0.50

Tested by

no test coverage detected