Adopt Sendable (#23)

* Make RawStructuredFieldValues sendable

* Make StructuredFieldValues Sendable

* Rename _Sendable to SHSendable

* Fix date checking

* Fix warning

* Soundness

* Update date

Co-authored-by: Cory Benfield <lukasa@apple.com>

Co-authored-by: Cory Benfield <lukasa@apple.com>
This commit is contained in:
David EvansandCory Benfield authored and GitHub committed 2022-05-13 17:11:50 +01:00
1 parent a3c50a9c10
commit 522c301c0f
10 files changed
+39 -14

No files matched your search

@@ -16,7 +16,7 @@ import RawStructuredFieldValues
/// A `StructuredFieldValueDecoder` allows decoding `Decodable` objects from a HTTP
/// structured header field.
public struct StructuredFieldValueDecoder {
public struct StructuredFieldValueDecoder: SHSendable {
/// A strategy that should be used to map coding keys to wire format keys.
public var keyDecodingStrategy: KeyDecodingStrategy?
@@ -25,7 +25,7 @@ public struct StructuredFieldValueDecoder {
extension StructuredFieldValueDecoder {
/// A strategy that should be used to map coding keys to wire format keys.
public struct KeyDecodingStrategy: Hashable {
public struct KeyDecodingStrategy: Hashable, SHSendable {
fileprivate enum Base: Hashable {
case lowercase
}