mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-20 15:19:16 +00:00
* perf: make window state saving async to avoid blocking main thread - Convert `saveWindowState` to use `fs.promises.writeFile` - Keep `saveWindowStateSync` for use in `close` handler - Update `scheduleSaveState` to use async version - Reduces blocking time from ~0.38ms to ~0.10ms per write Co-authored-by: binaricat <16399091+binaricat@users.noreply.github.com> * Serialize async window state saves * fix: avoid async window state overwrite on close * fix: guard queued window state saves on close --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>