[PM-11133] Update Networking module for strict concurrency (#851)

This commit is contained in:
Katherine Bertelsen 2024-08-21 10:06:48 -05:00 committed by GitHub
parent c2d31c13ed
commit 2ed93f02d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 4 deletions

View File

@ -14,7 +14,12 @@ let package = Package(
), ),
], ],
targets: [ targets: [
.target(name: "Networking"), .target(name: "Networking",
// TODO: PM-11195
// This package can be updated to Swift 6, and this feature enablement removed
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency"),
]),
.testTarget( .testTarget(
name: "NetworkingTests", name: "NetworkingTests",
dependencies: ["Networking"] dependencies: ["Networking"]

View File

@ -6,5 +6,5 @@ extension Logger {
/// The OSLog subsystem passed along with logs to the logging system to identify logs from this /// The OSLog subsystem passed along with logs to the logging system to identify logs from this
/// library. /// library.
private static var subsystem = Bundle(for: HTTPService.self).bundleIdentifier! private static let subsystem = Bundle(for: HTTPService.self).bundleIdentifier!
} }

View File

@ -1,6 +1,6 @@
/// A type representing the HTTP method. /// A type representing the HTTP method.
/// ///
public struct HTTPMethod: Equatable { public struct HTTPMethod: Equatable, Sendable {
/// The string value of the method. /// The string value of the method.
let rawValue: String let rawValue: String
} }

View File

@ -2,7 +2,7 @@ import Foundation
/// A data model containing the details of an HTTP response that's been received. /// A data model containing the details of an HTTP response that's been received.
/// ///
public struct HTTPResponse: Equatable { public struct HTTPResponse: Equatable, Sendable {
// MARK: Properties // MARK: Properties
/// Data received in the body of the response. /// Data received in the body of the response.