Make setup closure in run function sendable

This commit is contained in:
david-swift 2024-09-30 10:24:44 +02:00
parent 682947abb0
commit f3e1894e80

View File

@ -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()