Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
Make setup closure in run function sendable
Browse files Browse the repository at this point in the history
  • Loading branch information
david-swift committed Sep 30, 2024
1 parent 682947a commit f3e1894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Model/User Interface/App/AppStorage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit f3e1894

Please sign in to comment.