( runDir: string, window: TimelineWindow, ms?: number, )
| 91 | * focus of a run never beats (nothing to linger on). |
| 92 | */ |
| 93 | export const enterFocus = async ( |
| 94 | runDir: string, |
| 95 | window: TimelineWindow, |
| 96 | ms?: number, |
| 97 | ): Promise<void> => { |
| 98 | const previous = read(runDir).focus.at(-1)?.window; |
| 99 | if (previous !== undefined && previous !== window) await beat(ms); |
| 100 | markFocus(runDir, window); |
| 101 | }; |
no test coverage detected