From be6c0490643eabd9757a5226dbb6cbf328f0ba82 Mon Sep 17 00:00:00 2001 From: Owen Voorhees Date: Thu, 11 Dec 2025 16:55:29 -0800 Subject: [PATCH] PolymorphicSerializable types shuld have Sendable metatypes --- Sources/SWBUtil/Serialization.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SWBUtil/Serialization.swift b/Sources/SWBUtil/Serialization.swift index ad9ecfa5..aa046a11 100644 --- a/Sources/SWBUtil/Serialization.swift +++ b/Sources/SWBUtil/Serialization.swift @@ -684,7 +684,7 @@ extension PendingSerializableCodable { /// Elements of these types will be wrapped in a `PolymorphicSerializableWrapper` struct to be serialized. They should never be serialized directly (which is why this protocol does not adopt `Serializable`). /// /// `PolymorphicSerializable` does not support serializing multiple types of a given protocol, because deserialization cannot infer the type to instantiate if all it has to work with is the protocol. A class hierarchy should be used instead. -public protocol PolymorphicSerializable +public protocol PolymorphicSerializable: SendableMetatype { /// Serialize the receiver. func serialize(to serializer: T)