Avatar
Avatar
kntk
@swift-main @swift-6.0.3 @swift-5.10.1 -strict-concurrency=complete struct Client: Sendable { let action: @MainActor () -> Void } (edited)
swiftNightly BOT 8/29/2024 8:37 AM
<stdin>:2:9: warning: stored property 'action' of 'Sendable'-conforming struct 'Client' has non-sendable type '@MainActor () -> Void'; this is an error in the Swift 6 language mode 1 | struct Client: Sendable { 2 | let action: @MainActor () -> Void | |- warning: stored property 'action' of 'Sendable'-conforming struct 'Client' has non-sendable type '@MainActor () -> Void'; this is an error in the Swift 6 language mode | `- note: a function type must be marked '@Sendable' to conform to 'Sendable' 3 | } 4 | (edited)