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