MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / armDeferredSynthesis

Method armDeferredSynthesis

src/index.ts:1940–1947  ·  view source on GitHub ↗

Run the synthesis a sync put off once the interval is up, unless a sync runs it first.

(delayMs: number)

Source from the content-addressed store, hash-verified

1938
1939 /** Run the synthesis a sync put off once the interval is up, unless a sync runs it first. */
1940 private armDeferredSynthesis(delayMs: number): void {
1941 if (this.deferredSynthesisTimer) return;
1942 this.deferredSynthesisTimer = setTimeout(() => {
1943 this.deferredSynthesisTimer = null;
1944 void this.runDeferredSynthesis();
1945 }, delayMs);
1946 this.deferredSynthesisTimer.unref?.();
1947 }
1948
1949 /**
1950 * The put-off synthesis, under the locks a sync holds. Nothing to do when a

Callers 2

syncMethod · 0.95
retryLaterMethod · 0.95

Calls 1

runDeferredSynthesisMethod · 0.95

Tested by

no test coverage detected