Open History to see the last commit
1import * as Runtime from "effect/Runtime";
2
3// DesktopLifecycle owns signals and waits for backend shutdown before quitting
4// Electron. NodeRuntime's competing signal handler interrupts that sequence.
5export const runMain = Runtime.makeRunMain(({ fiber, teardown }) => {
6 fiber.addObserver((exit) => {
7 teardown(exit, (code) => {
8 if (code !== 0) process.exit(code);
9 });
10 });
11});