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

Method armDeferredSynthesis

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

2011
2012 /** Run the synthesis a sync put off once the interval is up, unless a sync runs it first. */
2013 private armDeferredSynthesis(delayMs: number): void {
2014 if (this.deferredSynthesisTimer) return;
2015 this.deferredSynthesisTimer = setTimeout(() => {
2016 this.deferredSynthesisTimer = null;
2017 void this.runDeferredSynthesis();
2018 }, delayMs);
2019 this.deferredSynthesisTimer.unref?.();
2020 }
2021
2022 /**
2023 * 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