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

Method armDeferredSynthesis

src/index.ts:1991–1998  ·  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

1989
1990 /** Run the synthesis a sync put off once the interval is up, unless a sync runs it first. */
1991 private armDeferredSynthesis(delayMs: number): void {
1992 if (this.deferredSynthesisTimer) return;
1993 this.deferredSynthesisTimer = setTimeout(() => {
1994 this.deferredSynthesisTimer = null;
1995 void this.runDeferredSynthesis();
1996 }, delayMs);
1997 this.deferredSynthesisTimer.unref?.();
1998 }
1999
2000 /**
2001 * 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