Spaces:
Runtime error
Runtime error
File size: 440 Bytes
cd8bd0a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | import { loadSqliteRuntime } from "./sqliteRuntime.mjs";
let warmed = false;
/**
* Pre-resolves native runtimes at startup so the first DB access is fast
* and EBUSY-resilient on Windows.
*
* Tray runtime (systray2) is warmed lazily by initTray() in bin/cli/tray/.
*/
export async function warmUpRuntimes() {
if (warmed) return;
warmed = true;
try {
await loadSqliteRuntime();
} catch {}
}
export { loadSqliteRuntime };
|