Skip to content

Commit eab3574

Browse files
committed
Annotate con-concurrent handler as @mainactor
1 parent 37b5b77 commit eab3574

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

Example/Example.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 19 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/Models/VisualLoggerAction.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import SwiftUI
2424

2525
/// A type that defines the closure for an action handler.
26-
public typealias VisualLoggerActionHandler = @Sendable (_ action: VisualLoggerAction) -> Void
26+
public typealias VisualLoggerActionHandler = @MainActor (_ action: VisualLoggerAction) -> Void
2727

2828
/// A type that defines the closure for a asynchronous action handler.
2929
public typealias VisualLoggerActionAsyncHandler = @Sendable (_ action: VisualLoggerAction) async -> Void

0 commit comments

Comments
 (0)