MCPcopy Index your code
hub / github.com/anomalyco/opencode / clearTimers

Function clearTimers

packages/desktop/src/main/unresponsive.ts:14–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13 const active = () => sampling && !win.isDestroyed() && !win.webContents.isDestroyed()
14 const clearTimers = () => {
15 if (sampleTimer) clearTimeout(sampleTimer)
16 if (stopTimer) clearTimeout(stopTimer)
17 sampleTimer = undefined
18 stopTimer = undefined
19 }
20
21 const schedule = () => {
22 sampleTimer = setTimeout(() => {

Callers 1

stopAndFlushFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected