()
| 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; |
no test coverage detected