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

Method armDeferredSynthesis

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

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