From f3e1894e804e04efa1c877a4de3427ff5be91079 Mon Sep 17 00:00:00 2001 From: david-swift Date: Mon, 30 Sep 2024 10:24:44 +0200 Subject: [PATCH] Make setup closure in run function sendable --- Sources/Model/User Interface/App/AppStorage.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Model/User Interface/App/AppStorage.swift b/Sources/Model/User Interface/App/AppStorage.swift index 93f4df4..782f93f 100644 --- a/Sources/Model/User Interface/App/AppStorage.swift +++ b/Sources/Model/User Interface/App/AppStorage.swift @@ -20,7 +20,7 @@ public protocol AppStorage: Actor, Sendable { /// Run the application. /// - Parameter setup: A closure that is expected to be executed right at the beginning. - nonisolated func run(setup: @escaping () -> Void) + nonisolated func run(setup: @Sendable @escaping () -> Void) /// Terminate the application. nonisolated func quit()