MCPcopy Index your code
hub / github.com/Waishnav/devspace / finish

Method finish

src/process-sessions.ts:375–386  ·  view source on GitHub ↗
(session: ProcessSession, exitCode?: number, signal?: string)

Source from the content-addressed store, hash-verified

373 }
374
375 private finish(session: ProcessSession, exitCode?: number, signal?: string): void {
376 if (!session.running) return;
377 session.running = false;
378 session.exitCode = exitCode;
379 session.signal = signal;
380 session.resolveExit();
381 session.cleanupTimer = setTimeout(
382 () => this.sessions.delete(session.id),
383 this.completedSessionTtlMs,
384 );
385 session.cleanupTimer.unref();
386 }
387
388 private append(session: ProcessSession, output: string): void {
389 session.buffer.append(output);

Callers 2

startPipeMethod · 0.95
startPtyMethod · 0.95

Calls 1

resolveExitMethod · 0.80

Tested by

no test coverage detected