Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): Windows restarts no longer strand threads waiting on background tasks #28500

ClosedNotAnNvidiaFan(GitHub profile, opens in a new tab)wants to merge 7 commits intomain fromrefs/pull/28500/headopened View on GitHub

Showing 12 changed files with 108 additions and 3 deletions (loading 9).

x
0 of 12 viewed, 12 left
2 additions and 0 deletionsapps/desktop/src/backend/DesktopBackendConfiguration.tsModified
View file
@@ -513,6 +513,8 @@
desktopTelemetryControlFd: 5,
desktopBrowserFd: 6,
desktopBrowserControlFd: 7,
+ desktopStopFd: 8,
+ desktopStopAckFd: 9,
...Option.match(input.resourceMonitorPath, {
onNone: () => ({}),
onSome: (resourceMonitorPath) => ({ resourceMonitorPath }),
74 additions and 0 deletionsapps/desktop/src/backend/DesktopBackendManager.test.tsModified
View file
@@ -10,6 +10,7 @@
import * as Duration from "effect/Duration";
import * as Effect from "effect/Effect";
import * as FileSystem from "effect/FileSystem";
+import * as Exit from "effect/Exit";
import * as Fiber from "effect/Fiber";
import * as Layer from "effect/Layer";
import * as Option from "effect/Option";
@@ -319,6 +320,79 @@
​
+ const stopNoticeSpawner = (input: {
+ readonly events: Array<string>;
+ readonly acknowledge: boolean;
+ }) =>