MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / scheduleNextCheck

Function scheduleNextCheck

cli/src/hooks/use-connection-status.ts:57–60  ·  view source on GitHub ↗
(interval: number)

Source from the content-addressed store, hash-verified

55 let currentInterval: number = HEALTH_CHECK_CONFIG.INITIAL_INTERVAL
56
57 const scheduleNextCheck = (interval: number) => {
58 if (!isMounted) return
59 timeoutId = setTimeout(() => checkConnection(), interval)
60 }
61
62 const checkConnection = async () => {
63 const client = await getCodebuffClient()

Callers 1

checkConnectionFunction · 0.85

Calls 2

setTimeoutFunction · 0.85
checkConnectionFunction · 0.85

Tested by

no test coverage detected