We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
PolymorphicCodable
Sendable
1 parent cba2779 commit 7bc4ec9Copy full SHA for 7bc4ec9
Sources/TSCUtility/PolymorphicCodable.swift
@@ -42,6 +42,8 @@ public struct PolymorphicCodable<T: PolymorphicCodableProtocol>: Codable {
42
}
43
44
45
+extension PolymorphicCodable: Sendable where T: Sendable {}
46
+
47
@propertyWrapper
48
public struct PolymorphicCodableArray<T: PolymorphicCodableProtocol>: Codable {
49
public let value: [PolymorphicCodable<T>]
@@ -54,3 +56,5 @@ public struct PolymorphicCodableArray<T: PolymorphicCodableProtocol>: Codable {
54
56
return value.map{ $0.value }
55
57
58
59
60
+extension PolymorphicCodableArray: Sendable where T: Sendable {}
0 commit comments