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

Function scheduleReconnect

packages/tui/src/context/editor.ts:276–282  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

274 }
275
276 const scheduleReconnect = () => {
277 if (closed) return
278 if (reconnect) clearTimeout(reconnect)
279 attempt += 1
280 const delay = Math.min(1000 * 2 ** (attempt - 1), 10_000)
281 reconnect = setTimeout(connect, delay)
282 }
283
284 const scheduleZedPoll = () => {
285 if (closed) return

Callers 1

connectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected