(sessionPath: string)
| 314 | } |
| 315 | |
| 316 | export function getCachedRuntimeForSessionPath(sessionPath: string) { |
| 317 | const persistedSessionPath = getPersistedSessionPath(sessionPath) |
| 318 | if (!persistedSessionPath) { |
| 319 | return null |
| 320 | } |
| 321 | |
| 322 | const record = getRuntimeRecord(persistedSessionPath) |
| 323 | if (!record) { |
| 324 | return null |
| 325 | } |
| 326 | |
| 327 | return record.runtimePromise |
| 328 | } |
| 329 | |
| 330 | export async function getOrCreateRuntimeForSessionPath( |
| 331 | sessionPath: string, |
no test coverage detected