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

Method armDeferredSynthesis

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

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