Make setup closure in run function sendable
This commit is contained in:
parent
682947abb0
commit
f3e1894e80
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user