()
| 959 | |
| 960 | let persistWindowStateTimer: ReturnType<typeof setTimeout> | null = null |
| 961 | const scheduleWindowStatePersist = () => { |
| 962 | if (persistWindowStateTimer) clearTimeout(persistWindowStateTimer) |
| 963 | persistWindowStateTimer = setTimeout(() => { |
| 964 | persistWindowStateTimer = null |
| 965 | void persistWindowState(win) |
| 966 | }, WINDOW_STATE_PERSIST_DELAY_MS) |
| 967 | } |
| 968 | const flushWindowStatePersist = () => { |
| 969 | if (persistWindowStateTimer) { |
| 970 | clearTimeout(persistWindowStateTimer) |
nothing calls this directly
no test coverage detected