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.
|
/// Run the application.
|
||||||
/// - Parameter setup: A closure that is expected to be executed right at the beginning.
|
/// - 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.
|
/// Terminate the application.
|
||||||
nonisolated func quit()
|
nonisolated func quit()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user