fiemwl / bin /cli /runtime /index.mjs
automindy's picture
Upload 2581 files
5448d8b verified
Raw
History Blame Contribute Delete
459 Bytes
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 };