Run the synthesis a sync put off once the interval is up, unless a sync runs it first.
(delayMs: number)
| 1989 | |
| 1990 | /** Run the synthesis a sync put off once the interval is up, unless a sync runs it first. */ |
| 1991 | private armDeferredSynthesis(delayMs: number): void { |
| 1992 | if (this.deferredSynthesisTimer) return; |
| 1993 | this.deferredSynthesisTimer = setTimeout(() => { |
| 1994 | this.deferredSynthesisTimer = null; |
| 1995 | void this.runDeferredSynthesis(); |
| 1996 | }, delayMs); |
| 1997 | this.deferredSynthesisTimer.unref?.(); |
| 1998 | } |
| 1999 | |
| 2000 | /** |
| 2001 | * The put-off synthesis, under the locks a sync holds. Nothing to do when a |
no test coverage detected