MCPcopy Index your code
hub / github.com/codeaashu/claude-code / forceStopPreventSleep

Function forceStopPreventSleep

src/services/preventSleep.ts:64–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 * Use this for cleanup on exit.
63 */
64export function forceStopPreventSleep(): void {
65 refCount = 0
66 stopRestartInterval()
67 killCaffeinate()
68}
69
70function startRestartInterval(): void {
71 // Only run on macOS

Callers 1

spawnCaffeinateFunction · 0.85

Calls 2

stopRestartIntervalFunction · 0.85
killCaffeinateFunction · 0.85

Tested by

no test coverage detected