MCPcopy Create free account
hub / github.com/anthropics/claude-code / scheduleRefresh

Function scheduleRefresh

mods/diff/hooks/register.ts:579–592  ·  view source on GitHub ↗
(engine: Host)

Source from the content-addressed store, hash-verified

577 }
578
579 function scheduleRefresh(engine: Host): void {
580 timers.get('refresh')?.cancel()
581
582 const timer = engine.after(Limits.REFRESH_DEBOUNCE_MS, () => {
583 if (timers.get('refresh') !== timer) {
584 return
585 }
586
587 timers.delete('refresh')
588 void refresh(engine)
589 })
590
591 timers.set('refresh', timer)
592 }
593
594 async function markShown(
595 engine: Host,

Callers 3

startPollFunction · 0.85
runQueuedFunction · 0.85
afterToolFunction · 0.85

Calls 4

refreshFunction · 0.85
deleteMethod · 0.80
getMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected