INNER CODE UNIT · TypeScript

intervalMs

elie222/inbox-zero · apps/desktop/src/main.ts:198

    const intervalMs = now - lastHealthReadAt;
    lastHealthReadAt = now;
    return {
      version: app.getVersion(),
      intervalMs,
      mainEventLoopDelayMs: mainEventLoopDelay.drain(),
      engine: (await desktopMailOwner?.health()) ?? null,
      mailboxBytes: readMailboxBytes(),
    };
  });

  app.on("second-instance", (_event, argv) => {
    const protocolUrl = findDesktopProtocolUrl(argv);
    if (protocolUrl) {
      handleAuthCallbackUrl(protocolUrl).catch(showSignInError);
    }
    focusAppWindow();
  });

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…