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

Function schedule

packages/opencode/src/lsp/client.ts:479–486  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

477 resolve(result)
478 }
479 const schedule = () => {
480 const hit = published.get(request.path)
481 if (!hit) return
482 if (typeof hit.version === "number" && hit.version !== request.version) return
483 if (hit.at < request.after && hit.version !== request.version) return
484 if (debounceTimer) clearTimeout(debounceTimer)
485 debounceTimer = setTimeout(() => finish(true), Math.max(0, DIAGNOSTICS_DEBOUNCE_MS - (Date.now() - hit.at)))
486 }
487
488 timeoutTimer = setTimeout(() => finish(false), request.timeout)
489 const listener = (event: { path: string; serverID: string }) => {

Callers 2

listenerFunction · 0.70
waitForFreshPushFunction · 0.70

Calls 2

finishFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected