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

Method shutdown

src/process-sessions.ts:278–284  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

276 }
277
278 shutdown(): void {
279 for (const session of this.sessions.values()) {
280 if (session.cleanupTimer) clearTimeout(session.cleanupTimer);
281 if (session.running) session.process?.kill("SIGTERM");
282 }
283 this.sessions.clear();
284 }
285
286 private async waitForExit(session: ProcessSession, yieldTimeMs: number): Promise<void> {
287 let timer: NodeJS.Timeout | undefined;

Callers 2

createServerFunction · 0.95

Calls 1

killMethod · 0.65

Tested by

no test coverage detected