@@ -698,7 +698,7 @@ extension ConfigReader {
698698 /// produces `nil` if the value is missing or can't be converted.
699699 /// - Returns: The result produced by the handler.
700700 /// - Throws: Rethrows any error thrown by the handler or the underlying watch operation.
701- public func watch${primitive_type["name"]}<Return>(
701+ public func watch${primitive_type["name"]}<Return: ~Copyable >(
702702 forKey key: ConfigKey,
703703 isSecret: Bool = false,
704704 fileID: String = #fileID,
@@ -741,7 +741,7 @@ extension ConfigReader {
741741 /// produces the default value if the provider returned a `nil` value or conversion failed.
742742 /// - Returns: The result produced by the handler.
743743 /// - Throws: Rethrows any error thrown by the handler or the underlying watch operation.
744- public func watch${primitive_type["name"]}<Return>(
744+ public func watch${primitive_type["name"]}<Return: ~Copyable >(
745745 forKey key: ConfigKey,
746746 isSecret: Bool = false,
747747 default defaultValue: ${primitive_type["type"]},
@@ -785,7 +785,7 @@ extension ConfigReader {
785785 /// produces an error if the provider returned a `nil` value or if the value was of an incorrect type.
786786 /// - Returns: The result produced by the handler.
787787 /// - Throws: Rethrows any error thrown by the handler or the underlying watch operation.
788- public func watchRequired${primitive_type["name"]}<Return>(
788+ public func watchRequired${primitive_type["name"]}<Return: ~Copyable >(
789789 forKey key: ConfigKey,
790790 isSecret: Bool = false,
791791 fileID: String = #fileID,
@@ -834,7 +834,7 @@ extension ConfigReader {
834834 /// produces `nil` if the value is missing or can't be converted.
835835 /// - Returns: The result produced by the handler.
836836 /// - Throws: Rethrows any error thrown by the handler or the underlying watch operation.
837- public func watchString<Value: ${string_convertible_type["protocol"]} & Sendable, Return>(
837+ public func watchString<Value: ${string_convertible_type["protocol"]} & Sendable, Return: ~Copyable >(
838838 forKey key: ConfigKey,
839839 as type: Value.Type = Value.self,
840840 isSecret: Bool = false,
@@ -879,7 +879,7 @@ extension ConfigReader {
879879 /// produces the default value if the provider returned a `nil` value or conversion failed.
880880 /// - Returns: The result produced by the handler.
881881 /// - Throws: Rethrows any error thrown by the handler or the underlying watch operation.
882- public func watchString<Value: ${string_convertible_type["protocol"]} & Sendable, Return>(
882+ public func watchString<Value: ${string_convertible_type["protocol"]} & Sendable, Return: ~Copyable >(
883883 forKey key: ConfigKey,
884884 as type: Value.Type = Value.self,
885885 isSecret: Bool = false,
@@ -925,7 +925,7 @@ extension ConfigReader {
925925 /// produces an error if the provider returned a `nil` value or if the value was of an incorrect type.
926926 /// - Returns: The result produced by the handler.
927927 /// - Throws: Rethrows any error thrown by the handler or the underlying watch operation.
928- public func watchRequiredString<Value: ${string_convertible_type["protocol"]} & Sendable, Return>(
928+ public func watchRequiredString<Value: ${string_convertible_type["protocol"]} & Sendable, Return: ~Copyable >(
929929 forKey key: ConfigKey,
930930 as type: Value.Type = Value.self,
931931 isSecret: Bool = false,
@@ -973,7 +973,7 @@ extension ConfigReader {
973973 /// produces `nil` if the value is missing or can't be converted.
974974 /// - Returns: The result produced by the handler.
975975 /// - Throws: Rethrows any error thrown by the handler or the underlying watch operation.
976- public func watchStringArray<Value: ${string_convertible_type["protocol"]} & Sendable, Return>(
976+ public func watchStringArray<Value: ${string_convertible_type["protocol"]} & Sendable, Return: ~Copyable >(
977977 forKey key: ConfigKey,
978978 as type: Value.Type = Value.self,
979979 isSecret: Bool = false,
@@ -1018,7 +1018,7 @@ extension ConfigReader {
10181018 /// produces the default value if the provider returned a `nil` value or conversion failed.
10191019 /// - Returns: The result produced by the handler.
10201020 /// - Throws: Rethrows any error thrown by the handler or the underlying watch operation.
1021- public func watchStringArray<Value: ${string_convertible_type["protocol"]} & Sendable, Return>(
1021+ public func watchStringArray<Value: ${string_convertible_type["protocol"]} & Sendable, Return: ~Copyable >(
10221022 forKey key: ConfigKey,
10231023 as type: Value.Type = Value.self,
10241024 isSecret: Bool = false,
@@ -1064,7 +1064,7 @@ extension ConfigReader {
10641064 /// produces an error if the provider returned a `nil` value or if the value was of an incorrect type.
10651065 /// - Returns: The result produced by the handler.
10661066 /// - Throws: Rethrows any error thrown by the handler or the underlying watch operation.
1067- public func watchRequiredStringArray<Value: ${string_convertible_type["protocol"]} & Sendable, Return>(
1067+ public func watchRequiredStringArray<Value: ${string_convertible_type["protocol"]} & Sendable, Return: ~Copyable >(
10681068 forKey key: ConfigKey,
10691069 as type: Value.Type = Value.self,
10701070 isSecret: Bool = false,
0 commit comments