Run the synthesis a sync put off once the interval is up, unless a sync runs it first.
(delayMs: number)
| 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 |
no test coverage detected