()
| 92 | } |
| 93 | |
| 94 | function stopRestartInterval(): void { |
| 95 | if (restartInterval !== null) { |
| 96 | clearInterval(restartInterval) |
| 97 | restartInterval = null |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | function spawnCaffeinate(): void { |
| 102 | // Only run on macOS |
no outgoing calls
no test coverage detected