()
| 100 | holographicWatcher.on("all", scheduleHolographicRecompile); |
| 101 | |
| 102 | function 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 | } |
| 109 | process.on("SIGINT", shutdown); |
| 110 | process.on("SIGTERM", shutdown); |