(sessionId: string)
| 2013 | } |
| 2014 | |
| 2015 | async remove(sessionId: string): Promise<void> { |
| 2016 | const shellRunClose = await this.deps.shellRuns?.terminateSession(sessionId); |
| 2017 | try { |
| 2018 | await this.runtimeKernel.disposeBackend(sessionId); |
| 2019 | await this.deps.store.remove(sessionId); |
| 2020 | } catch (error) { |
| 2021 | if (shellRunClose) this.deps.shellRuns?.rollbackSessionClose(shellRunClose); |
| 2022 | throw error; |
| 2023 | } |
| 2024 | if (shellRunClose) await this.deps.shellRuns?.commitSessionClose(shellRunClose); |
| 2025 | } |
| 2026 | |
| 2027 | // -------------------------------------------------------------------------- |
| 2028 | // Send / stream — Phase 1 vertical heart |
no test coverage detected