Skip to content

Commit d82cd00

Browse files
committed
I love waiting 15 minutes for CI to compile a 1-line change
1 parent 3671bb4 commit d82cd00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/WinUIBackend/WinUIBackend.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public final class WinUIBackend: AppBackend {
239239

240240
public func runInMainThread(action: @escaping @MainActor () -> Void) {
241241
_ = try! dispatcherQueue!.tryEnqueue(.normal) {
242-
action()
242+
MainActor.assumeIsolated(action)
243243
}
244244
}
245245

0 commit comments

Comments
 (0)