Check for supported types in the @SendableProperty macro (#212)

- The `@SendableProperty` macro now checks for supported types to
prevent a misuse with unsupported types like structs, dictionaries, and
arrays
- The new `@SendablePropertyUnchecked` can be used with classes and
enums
This commit is contained in:
Dmitry Kovba
2025-07-14 15:08:08 -07:00
committed by GitHub
parent ab559752b8
commit 41d41e4ffe
9 changed files with 272 additions and 87 deletions
@@ -54,7 +54,7 @@ public final class LinuxContainer: Container, Sendable {
var dns: DNS? = nil
}
@SendableProperty
@SendablePropertyUnchecked
private var state: State
private let config: Mutex<Configuration>