MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / shutdown

Function shutdown

dashboard/dev/run.mjs:102–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100holographicWatcher.on("all", scheduleHolographicRecompile);
101
102function shutdown() {
103 if (recompileTimer) clearTimeout(recompileTimer);
104 Promise.allSettled([
105 Promise.resolve(handle && typeof handle.close === "function" ? handle.close() : undefined),
106 Promise.resolve(holographicWatcher.close()),
107 ]).finally(() => process.exit(0));
108}
109process.on("SIGINT", shutdown);
110process.on("SIGTERM", shutdown);

Callers

nothing calls this directly

Calls 2

resolveMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected