()
| 370 | |
| 371 | /** Reset shutdown state - only for use in tests */ |
| 372 | export function resetShutdownState(): void { |
| 373 | shutdownInProgress = false |
| 374 | resumeHintPrinted = false |
| 375 | if (failsafeTimer !== undefined) { |
| 376 | clearTimeout(failsafeTimer) |
| 377 | failsafeTimer = undefined |
| 378 | } |
| 379 | pendingShutdown = undefined |
| 380 | } |
| 381 | |
| 382 | /** |
| 383 | * Returns the in-flight shutdown promise, if any. Only for use in tests |
nothing calls this directly
no outgoing calls
no test coverage detected