Build Information
Successful build of Telegraph, reference main (e467b4
), with Swift 6.0 for macOS (SPM) on 30 Nov 2024 20:21:21 UTC.
Swift 6 data race errors: 127
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:14:14: warning: static property 'webSocketProtocol' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
| |- warning: static property 'webSocketProtocol' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketProtocol' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:15:14: warning: static property 'webSocketVersion' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
| |- warning: static property 'webSocketVersion' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Transport/URI.swift:90:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct URI: Hashable, Equatable {
| `- note: consider making struct 'URI' conform to the 'Sendable' protocol
12 | private var components: URLComponents
13 |
:
88 | public extension URI {
89 | /// Returns a URI indicating the root.
90 | static let root = URI(path: "/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 |
92 | /// Returns the part of the path that doesn't overlap.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPVersion.swift:22:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct HTTPVersion {
| `- note: consider making struct 'HTTPVersion' conform to the 'Sendable' protocol
12 | public let major: UInt
13 | public let minor: UInt
:
20 |
21 | public extension HTTPVersion {
22 | static let `default` = HTTPVersion(major: 1, minor: 1)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:101:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
99 | public extension HTTPStatus {
100 | /// 200 OK: standard response for successful HTTP requests.
101 | static let ok = HTTPStatus(code: 200, phrase: "OK")
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 | /// 201 Created: request has been fulfilled, resulting in the creation of a new resource.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:91:14: warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
89 |
90 | /// 101 Switching Protocols: requester has asked the server to switch protocols and the server has agreed to do so.
91 | static let switchingProtocols = HTTPStatus(code: 101, phrase: "Switching Protocols")
| |- warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'switchingProtocols' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
92 |
93 | /// 102 Processing: server has received and is processing the request, but no response is available yet.
[54/74] Compiling Telegraph HTTPHeader+WebSocket.swift
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPMethod.swift:14:14: warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct HTTPMethod: Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
10 | public let name: String
11 | }
12 |
13 | public extension HTTPMethod {
14 | static let GET = HTTPMethod(name: "GET")
| |- warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'GET' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static let HEAD = HTTPMethod(name: "HEAD")
16 | static let DELETE = HTTPMethod(name: "DELETE")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:171:14: warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
169 | public extension HTTPStatus {
170 | /// 400 Bad Request: server cannot or will not process the request due to an apparent client error.
171 | static let badRequest = HTTPStatus(code: 400, phrase: "Bad Request")
| |- warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'badRequest' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
172 |
173 | /// 401 Unauthorized: similar to 403 Forbidden, but specifically for use when authentication is
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:274:14: warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
272 | /// 501 Not Implemented: server either does not recognize the request method, or it lacks the ability
273 | /// to fulfil the request.
274 | static let notImplemented = HTTPStatus(code: 501, phrase: "Not Implemented")
| |- warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'notImplemented' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
275 |
276 | /// 502 Bad Gateway: server was acting as a gateway or proxy and received an invalid response
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:12:14: warning: static property 'webSocketAccept' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public extension HTTPHeaderName {
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
| |- warning: static property 'webSocketAccept' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketAccept' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:13:14: warning: static property 'webSocketKey' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public extension HTTPHeaderName {
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
| |- warning: static property 'webSocketKey' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketKey' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:14:14: warning: static property 'webSocketProtocol' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
| |- warning: static property 'webSocketProtocol' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketProtocol' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:15:14: warning: static property 'webSocketVersion' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
| |- warning: static property 'webSocketVersion' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Transport/URI.swift:90:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct URI: Hashable, Equatable {
| `- note: consider making struct 'URI' conform to the 'Sendable' protocol
12 | private var components: URLComponents
13 |
:
88 | public extension URI {
89 | /// Returns a URI indicating the root.
90 | static let root = URI(path: "/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 |
92 | /// Returns the part of the path that doesn't overlap.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPVersion.swift:22:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct HTTPVersion {
| `- note: consider making struct 'HTTPVersion' conform to the 'Sendable' protocol
12 | public let major: UInt
13 | public let minor: UInt
:
20 |
21 | public extension HTTPVersion {
22 | static let `default` = HTTPVersion(major: 1, minor: 1)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:101:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
99 | public extension HTTPStatus {
100 | /// 200 OK: standard response for successful HTTP requests.
101 | static let ok = HTTPStatus(code: 200, phrase: "OK")
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 | /// 201 Created: request has been fulfilled, resulting in the creation of a new resource.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:91:14: warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
89 |
90 | /// 101 Switching Protocols: requester has asked the server to switch protocols and the server has agreed to do so.
91 | static let switchingProtocols = HTTPStatus(code: 101, phrase: "Switching Protocols")
| |- warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'switchingProtocols' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
92 |
93 | /// 102 Processing: server has received and is processing the request, but no response is available yet.
[55/74] Compiling Telegraph HTTPMessage+WebSocket.swift
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPMethod.swift:14:14: warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
7 | //
8 |
9 | public struct HTTPMethod: Hashable {
| `- note: consider making struct 'HTTPMethod' conform to the 'Sendable' protocol
10 | public let name: String
11 | }
12 |
13 | public extension HTTPMethod {
14 | static let GET = HTTPMethod(name: "GET")
| |- warning: static property 'GET' is not concurrency-safe because non-'Sendable' type 'HTTPMethod' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'GET' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static let HEAD = HTTPMethod(name: "HEAD")
16 | static let DELETE = HTTPMethod(name: "DELETE")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:171:14: warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
169 | public extension HTTPStatus {
170 | /// 400 Bad Request: server cannot or will not process the request due to an apparent client error.
171 | static let badRequest = HTTPStatus(code: 400, phrase: "Bad Request")
| |- warning: static property 'badRequest' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'badRequest' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
172 |
173 | /// 401 Unauthorized: similar to 403 Forbidden, but specifically for use when authentication is
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:274:14: warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
272 | /// 501 Not Implemented: server either does not recognize the request method, or it lacks the ability
273 | /// to fulfil the request.
274 | static let notImplemented = HTTPStatus(code: 501, phrase: "Not Implemented")
| |- warning: static property 'notImplemented' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'notImplemented' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
275 |
276 | /// 502 Bad Gateway: server was acting as a gateway or proxy and received an invalid response
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:12:14: warning: static property 'webSocketAccept' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
10 |
11 | public extension HTTPHeaderName {
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
| |- warning: static property 'webSocketAccept' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketAccept' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:13:14: warning: static property 'webSocketKey' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
11 | public extension HTTPHeaderName {
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
| |- warning: static property 'webSocketKey' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketKey' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:14:14: warning: static property 'webSocketProtocol' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
12 | static let webSocketAccept = HTTPHeaderName("Sec-WebSocket-Accept")
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
| |- warning: static property 'webSocketProtocol' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketProtocol' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
16 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift:15:14: warning: static property 'webSocketVersion' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
13 | static let webSocketKey = HTTPHeaderName("Sec-WebSocket-Key")
14 | static let webSocketProtocol = HTTPHeaderName("Sec-WebSocket-Protocol")
15 | static let webSocketVersion = HTTPHeaderName("Sec-WebSocket-Version")
| |- warning: static property 'webSocketVersion' is not concurrency-safe because non-'Sendable' type 'HTTPHeaderName' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'webSocketVersion' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPHeader.swift:13:15: note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
11 | public typealias HTTPHeaders = [HTTPHeaderName: String]
12 |
13 | public struct HTTPHeaderName: Hashable {
| `- note: consider making struct 'HTTPHeaderName' conform to the 'Sendable' protocol
14 | private let name: String
15 | private let nameInLowercase: String
/Users/admin/builder/spi-builder-workspace/Sources/Transport/URI.swift:90:14: warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct URI: Hashable, Equatable {
| `- note: consider making struct 'URI' conform to the 'Sendable' protocol
12 | private var components: URLComponents
13 |
:
88 | public extension URI {
89 | /// Returns a URI indicating the root.
90 | static let root = URI(path: "/")
| |- warning: static property 'root' is not concurrency-safe because non-'Sendable' type 'URI' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'root' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
91 |
92 | /// Returns the part of the path that doesn't overlap.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPVersion.swift:22:14: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public struct HTTPVersion {
| `- note: consider making struct 'HTTPVersion' conform to the 'Sendable' protocol
12 | public let major: UInt
13 | public let minor: UInt
:
20 |
21 | public extension HTTPVersion {
22 | static let `default` = HTTPVersion(major: 1, minor: 1)
| |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'HTTPVersion' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'default' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
23 | }
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:101:14: warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
99 | public extension HTTPStatus {
100 | /// 200 OK: standard response for successful HTTP requests.
101 | static let ok = HTTPStatus(code: 200, phrase: "OK")
| |- warning: static property 'ok' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'ok' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
102 |
103 | /// 201 Created: request has been fulfilled, resulting in the creation of a new resource.
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:91:14: warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
89 |
90 | /// 101 Switching Protocols: requester has asked the server to switch protocols and the server has agreed to do so.
91 | static let switchingProtocols = HTTPStatus(code: 101, phrase: "Switching Protocols")
| |- warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'switchingProtocols' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
92 |
93 | /// 102 Processing: server has received and is processing the request, but no response is available yet.
[56/74] Compiling Telegraph WebSocket.swift
[57/74] Compiling Telegraph WebSocketConfig.swift
[58/74] Compiling Telegraph WebSocketConnection.swift
[59/74] Compiling Telegraph WebSocketError.swift
[60/74] Compiling Telegraph WebSocketMessage+Write.swift
[61/74] Compiling Telegraph WebSocketMessage.swift
[62/74] Compiling Telegraph TLSConfig.swift
/Users/admin/builder/spi-builder-workspace/Sources/Transport/DataStream.swift:13:10: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
11 | public final class DataStream {
12 | private let data: Data
13 | public private (set) var position: Int
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
14 |
15 | /// Initializes a new DataStream.
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:70:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
68 | open func handleIncoming(request: HTTPRequest, connection: HTTPConnection, error: Error?) {
69 | workerQueue.addOperation { [weak self, weak connection] in
70 | guard let self = self, let connection = connection else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |
72 | // Get a response for the request
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:70:47: warning: capture of 'connection' with non-sendable type 'HTTPConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
68 | open func handleIncoming(request: HTTPRequest, connection: HTTPConnection, error: Error?) {
69 | workerQueue.addOperation { [weak self, weak connection] in
70 | guard let self = self, let connection = connection else { return }
| `- warning: capture of 'connection' with non-sendable type 'HTTPConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |
72 | // Get a response for the request
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPConnection.swift:22:14: note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
20 | // MARK: HTTPConnection
21 |
22 | public class HTTPConnection: TCPConnection {
| `- note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
23 | public weak var delegate: HTTPConnectionDelegate?
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:73:48: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |
72 | // Get a response for the request
73 | let response = self.responseFor(request: request, error: error)
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 |
75 | // Send the response or close the connection
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPRequest.swift:11:12: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPRequest: HTTPMessage {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
12 | public typealias Params = [String: String]
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:77:27: warning: capture of 'response' with non-sendable type 'HTTPResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | // Send the response or close the connection
76 | self.connectionsQueue.async {
77 | if let response = response {
| `- warning: capture of 'response' with non-sendable type 'HTTPResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | connection.send(response: response, toRequest: request)
79 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPResponse.swift:11:12: note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPResponse: HTTPMessage {
| `- note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
12 | public typealias Handler = (HTTPResponse, Error) -> Void
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:78:11: warning: capture of 'connection' with non-sendable type 'HTTPConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | self.connectionsQueue.async {
77 | if let response = response {
78 | connection.send(response: response, toRequest: request)
| `- warning: capture of 'connection' with non-sendable type 'HTTPConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | } else {
80 | connection.close(immediately: true)
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPConnection.swift:22:14: note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
20 | // MARK: HTTPConnection
21 |
22 | public class HTTPConnection: TCPConnection {
| `- note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
23 | public weak var delegate: HTTPConnectionDelegate?
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:78:58: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | self.connectionsQueue.async {
77 | if let response = response {
78 | connection.send(response: response, toRequest: request)
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | } else {
80 | connection.close(immediately: true)
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPRequest.swift:11:12: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPRequest: HTTPMessage {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
12 | public typealias Params = [String: String]
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:110:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
108 | // Call the delegate
109 | delegateQueue.async { [weak self] in
110 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | self.webSocketDelegate?.server(self, webSocketDidConnect: webSocketConnection, handshake: request)
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:111:65: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | delegateQueue.async { [weak self] in
110 | guard let self = self else { return }
111 | self.webSocketDelegate?.server(self, webSocketDidConnect: webSocketConnection, handshake: request)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:111:97: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | delegateQueue.async { [weak self] in
110 | guard let self = self else { return }
111 | self.webSocketDelegate?.server(self, webSocketDidConnect: webSocketConnection, handshake: request)
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPRequest.swift:11:12: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPRequest: HTTPMessage {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
12 | public typealias Params = [String: String]
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:91:14: warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
89 |
90 | /// 101 Switching Protocols: requester has asked the server to switch protocols and the server has agreed to do so.
91 | static let switchingProtocols = HTTPStatus(code: 101, phrase: "Switching Protocols")
| |- warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'switchingProtocols' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
92 |
93 | /// 102 Processing: server has received and is processing the request, but no response is available yet.
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:205:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
203 | public func listenerDisconnected(_ listener: TCPListener, error: Error?) {
204 | delegateQueue.async { [weak self] in
205 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
206 | self.delegate?.serverDidStop(self, error: error)
207 | self.webSocketDelegate?.serverDidDisconnect(self)
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:242:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
240 | public func connection(_ webSocketConnection: WebSocketConnection, didReceiveMessage message: WebSocketMessage) {
241 | delegateQueue.async { [weak self] in
242 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
243 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didReceiveMessage: message)
244 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:243:55: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
241 | delegateQueue.async { [weak self] in
242 | guard let self = self else { return }
243 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didReceiveMessage: message)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
244 | }
245 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:243:95: warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
241 | delegateQueue.async { [weak self] in
242 | guard let self = self else { return }
243 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didReceiveMessage: message)
| `- warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
244 | }
245 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketMessage.swift:11:12: note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class WebSocketMessage {
| `- note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
12 | public var finBit = true
13 | public var maskBit = true
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:250:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
248 | public func connection(_ webSocketConnection: WebSocketConnection, didSendMessage message: WebSocketMessage) {
249 | delegateQueue.async { [weak self] in
250 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
251 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didSendMessage: message)
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:251:55: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
249 | delegateQueue.async { [weak self] in
250 | guard let self = self else { return }
251 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didSendMessage: message)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
252 | }
253 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:251:92: warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
249 | delegateQueue.async { [weak self] in
250 | guard let self = self else { return }
251 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didSendMessage: message)
| `- warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
252 | }
253 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketMessage.swift:11:12: note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class WebSocketMessage {
| `- note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
12 | public var finBit = true
13 | public var maskBit = true
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:260:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
258 |
259 | delegateQueue.async { [weak self] in
260 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
261 | self.webSocketDelegate?.server(self, webSocketDidDisconnect: webSocketConnection, error: error)
262 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:261:68: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | delegateQueue.async { [weak self] in
260 | guard let self = self else { return }
261 | self.webSocketDelegate?.server(self, webSocketDidDisconnect: webSocketConnection, error: error)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 | }
263 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
[63/74] Compiling Telegraph TLSPolicy.swift
/Users/admin/builder/spi-builder-workspace/Sources/Transport/DataStream.swift:13:10: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
11 | public final class DataStream {
12 | private let data: Data
13 | public private (set) var position: Int
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
14 |
15 | /// Initializes a new DataStream.
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:70:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
68 | open func handleIncoming(request: HTTPRequest, connection: HTTPConnection, error: Error?) {
69 | workerQueue.addOperation { [weak self, weak connection] in
70 | guard let self = self, let connection = connection else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |
72 | // Get a response for the request
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:70:47: warning: capture of 'connection' with non-sendable type 'HTTPConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
68 | open func handleIncoming(request: HTTPRequest, connection: HTTPConnection, error: Error?) {
69 | workerQueue.addOperation { [weak self, weak connection] in
70 | guard let self = self, let connection = connection else { return }
| `- warning: capture of 'connection' with non-sendable type 'HTTPConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |
72 | // Get a response for the request
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPConnection.swift:22:14: note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
20 | // MARK: HTTPConnection
21 |
22 | public class HTTPConnection: TCPConnection {
| `- note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
23 | public weak var delegate: HTTPConnectionDelegate?
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:73:48: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |
72 | // Get a response for the request
73 | let response = self.responseFor(request: request, error: error)
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 |
75 | // Send the response or close the connection
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPRequest.swift:11:12: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPRequest: HTTPMessage {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
12 | public typealias Params = [String: String]
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:77:27: warning: capture of 'response' with non-sendable type 'HTTPResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | // Send the response or close the connection
76 | self.connectionsQueue.async {
77 | if let response = response {
| `- warning: capture of 'response' with non-sendable type 'HTTPResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | connection.send(response: response, toRequest: request)
79 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPResponse.swift:11:12: note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPResponse: HTTPMessage {
| `- note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
12 | public typealias Handler = (HTTPResponse, Error) -> Void
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:78:11: warning: capture of 'connection' with non-sendable type 'HTTPConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | self.connectionsQueue.async {
77 | if let response = response {
78 | connection.send(response: response, toRequest: request)
| `- warning: capture of 'connection' with non-sendable type 'HTTPConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | } else {
80 | connection.close(immediately: true)
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPConnection.swift:22:14: note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
20 | // MARK: HTTPConnection
21 |
22 | public class HTTPConnection: TCPConnection {
| `- note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
23 | public weak var delegate: HTTPConnectionDelegate?
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:78:58: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | self.connectionsQueue.async {
77 | if let response = response {
78 | connection.send(response: response, toRequest: request)
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | } else {
80 | connection.close(immediately: true)
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPRequest.swift:11:12: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPRequest: HTTPMessage {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
12 | public typealias Params = [String: String]
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:110:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
108 | // Call the delegate
109 | delegateQueue.async { [weak self] in
110 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | self.webSocketDelegate?.server(self, webSocketDidConnect: webSocketConnection, handshake: request)
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:111:65: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | delegateQueue.async { [weak self] in
110 | guard let self = self else { return }
111 | self.webSocketDelegate?.server(self, webSocketDidConnect: webSocketConnection, handshake: request)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:111:97: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | delegateQueue.async { [weak self] in
110 | guard let self = self else { return }
111 | self.webSocketDelegate?.server(self, webSocketDidConnect: webSocketConnection, handshake: request)
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPRequest.swift:11:12: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPRequest: HTTPMessage {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
12 | public typealias Params = [String: String]
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:91:14: warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
89 |
90 | /// 101 Switching Protocols: requester has asked the server to switch protocols and the server has agreed to do so.
91 | static let switchingProtocols = HTTPStatus(code: 101, phrase: "Switching Protocols")
| |- warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'switchingProtocols' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
92 |
93 | /// 102 Processing: server has received and is processing the request, but no response is available yet.
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:205:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
203 | public func listenerDisconnected(_ listener: TCPListener, error: Error?) {
204 | delegateQueue.async { [weak self] in
205 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
206 | self.delegate?.serverDidStop(self, error: error)
207 | self.webSocketDelegate?.serverDidDisconnect(self)
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:242:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
240 | public func connection(_ webSocketConnection: WebSocketConnection, didReceiveMessage message: WebSocketMessage) {
241 | delegateQueue.async { [weak self] in
242 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
243 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didReceiveMessage: message)
244 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:243:55: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
241 | delegateQueue.async { [weak self] in
242 | guard let self = self else { return }
243 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didReceiveMessage: message)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
244 | }
245 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:243:95: warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
241 | delegateQueue.async { [weak self] in
242 | guard let self = self else { return }
243 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didReceiveMessage: message)
| `- warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
244 | }
245 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketMessage.swift:11:12: note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class WebSocketMessage {
| `- note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
12 | public var finBit = true
13 | public var maskBit = true
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:250:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
248 | public func connection(_ webSocketConnection: WebSocketConnection, didSendMessage message: WebSocketMessage) {
249 | delegateQueue.async { [weak self] in
250 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
251 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didSendMessage: message)
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:251:55: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
249 | delegateQueue.async { [weak self] in
250 | guard let self = self else { return }
251 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didSendMessage: message)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
252 | }
253 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:251:92: warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
249 | delegateQueue.async { [weak self] in
250 | guard let self = self else { return }
251 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didSendMessage: message)
| `- warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
252 | }
253 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketMessage.swift:11:12: note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class WebSocketMessage {
| `- note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
12 | public var finBit = true
13 | public var maskBit = true
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:260:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
258 |
259 | delegateQueue.async { [weak self] in
260 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
261 | self.webSocketDelegate?.server(self, webSocketDidDisconnect: webSocketConnection, error: error)
262 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:261:68: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | delegateQueue.async { [weak self] in
260 | guard let self = self else { return }
261 | self.webSocketDelegate?.server(self, webSocketDidDisconnect: webSocketConnection, error: error)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 | }
263 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
[64/74] Compiling Telegraph Server+Config.swift
/Users/admin/builder/spi-builder-workspace/Sources/Transport/DataStream.swift:13:10: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
11 | public final class DataStream {
12 | private let data: Data
13 | public private (set) var position: Int
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
14 |
15 | /// Initializes a new DataStream.
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:70:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
68 | open func handleIncoming(request: HTTPRequest, connection: HTTPConnection, error: Error?) {
69 | workerQueue.addOperation { [weak self, weak connection] in
70 | guard let self = self, let connection = connection else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |
72 | // Get a response for the request
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:70:47: warning: capture of 'connection' with non-sendable type 'HTTPConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
68 | open func handleIncoming(request: HTTPRequest, connection: HTTPConnection, error: Error?) {
69 | workerQueue.addOperation { [weak self, weak connection] in
70 | guard let self = self, let connection = connection else { return }
| `- warning: capture of 'connection' with non-sendable type 'HTTPConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |
72 | // Get a response for the request
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPConnection.swift:22:14: note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
20 | // MARK: HTTPConnection
21 |
22 | public class HTTPConnection: TCPConnection {
| `- note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
23 | public weak var delegate: HTTPConnectionDelegate?
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:73:48: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |
72 | // Get a response for the request
73 | let response = self.responseFor(request: request, error: error)
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 |
75 | // Send the response or close the connection
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPRequest.swift:11:12: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPRequest: HTTPMessage {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
12 | public typealias Params = [String: String]
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:77:27: warning: capture of 'response' with non-sendable type 'HTTPResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | // Send the response or close the connection
76 | self.connectionsQueue.async {
77 | if let response = response {
| `- warning: capture of 'response' with non-sendable type 'HTTPResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | connection.send(response: response, toRequest: request)
79 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPResponse.swift:11:12: note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPResponse: HTTPMessage {
| `- note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
12 | public typealias Handler = (HTTPResponse, Error) -> Void
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:78:11: warning: capture of 'connection' with non-sendable type 'HTTPConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | self.connectionsQueue.async {
77 | if let response = response {
78 | connection.send(response: response, toRequest: request)
| `- warning: capture of 'connection' with non-sendable type 'HTTPConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | } else {
80 | connection.close(immediately: true)
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPConnection.swift:22:14: note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
20 | // MARK: HTTPConnection
21 |
22 | public class HTTPConnection: TCPConnection {
| `- note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
23 | public weak var delegate: HTTPConnectionDelegate?
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:78:58: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | self.connectionsQueue.async {
77 | if let response = response {
78 | connection.send(response: response, toRequest: request)
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | } else {
80 | connection.close(immediately: true)
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPRequest.swift:11:12: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPRequest: HTTPMessage {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
12 | public typealias Params = [String: String]
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:110:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
108 | // Call the delegate
109 | delegateQueue.async { [weak self] in
110 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | self.webSocketDelegate?.server(self, webSocketDidConnect: webSocketConnection, handshake: request)
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:111:65: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | delegateQueue.async { [weak self] in
110 | guard let self = self else { return }
111 | self.webSocketDelegate?.server(self, webSocketDidConnect: webSocketConnection, handshake: request)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:111:97: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | delegateQueue.async { [weak self] in
110 | guard let self = self else { return }
111 | self.webSocketDelegate?.server(self, webSocketDidConnect: webSocketConnection, handshake: request)
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPRequest.swift:11:12: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPRequest: HTTPMessage {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
12 | public typealias Params = [String: String]
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:91:14: warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
89 |
90 | /// 101 Switching Protocols: requester has asked the server to switch protocols and the server has agreed to do so.
91 | static let switchingProtocols = HTTPStatus(code: 101, phrase: "Switching Protocols")
| |- warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'switchingProtocols' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
92 |
93 | /// 102 Processing: server has received and is processing the request, but no response is available yet.
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:205:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
203 | public func listenerDisconnected(_ listener: TCPListener, error: Error?) {
204 | delegateQueue.async { [weak self] in
205 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
206 | self.delegate?.serverDidStop(self, error: error)
207 | self.webSocketDelegate?.serverDidDisconnect(self)
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:242:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
240 | public func connection(_ webSocketConnection: WebSocketConnection, didReceiveMessage message: WebSocketMessage) {
241 | delegateQueue.async { [weak self] in
242 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
243 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didReceiveMessage: message)
244 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:243:55: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
241 | delegateQueue.async { [weak self] in
242 | guard let self = self else { return }
243 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didReceiveMessage: message)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
244 | }
245 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:243:95: warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
241 | delegateQueue.async { [weak self] in
242 | guard let self = self else { return }
243 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didReceiveMessage: message)
| `- warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
244 | }
245 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketMessage.swift:11:12: note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class WebSocketMessage {
| `- note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
12 | public var finBit = true
13 | public var maskBit = true
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:250:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
248 | public func connection(_ webSocketConnection: WebSocketConnection, didSendMessage message: WebSocketMessage) {
249 | delegateQueue.async { [weak self] in
250 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
251 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didSendMessage: message)
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:251:55: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
249 | delegateQueue.async { [weak self] in
250 | guard let self = self else { return }
251 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didSendMessage: message)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
252 | }
253 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:251:92: warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
249 | delegateQueue.async { [weak self] in
250 | guard let self = self else { return }
251 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didSendMessage: message)
| `- warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
252 | }
253 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketMessage.swift:11:12: note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class WebSocketMessage {
| `- note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
12 | public var finBit = true
13 | public var maskBit = true
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:260:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
258 |
259 | delegateQueue.async { [weak self] in
260 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
261 | self.webSocketDelegate?.server(self, webSocketDidDisconnect: webSocketConnection, error: error)
262 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:261:68: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | delegateQueue.async { [weak self] in
260 | guard let self = self else { return }
261 | self.webSocketDelegate?.server(self, webSocketDidDisconnect: webSocketConnection, error: error)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 | }
263 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
[65/74] Compiling Telegraph Server.swift
/Users/admin/builder/spi-builder-workspace/Sources/Transport/DataStream.swift:13:10: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
11 | public final class DataStream {
12 | private let data: Data
13 | public private (set) var position: Int
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
14 |
15 | /// Initializes a new DataStream.
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:70:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
68 | open func handleIncoming(request: HTTPRequest, connection: HTTPConnection, error: Error?) {
69 | workerQueue.addOperation { [weak self, weak connection] in
70 | guard let self = self, let connection = connection else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |
72 | // Get a response for the request
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:70:47: warning: capture of 'connection' with non-sendable type 'HTTPConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
68 | open func handleIncoming(request: HTTPRequest, connection: HTTPConnection, error: Error?) {
69 | workerQueue.addOperation { [weak self, weak connection] in
70 | guard let self = self, let connection = connection else { return }
| `- warning: capture of 'connection' with non-sendable type 'HTTPConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |
72 | // Get a response for the request
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPConnection.swift:22:14: note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
20 | // MARK: HTTPConnection
21 |
22 | public class HTTPConnection: TCPConnection {
| `- note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
23 | public weak var delegate: HTTPConnectionDelegate?
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:73:48: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |
72 | // Get a response for the request
73 | let response = self.responseFor(request: request, error: error)
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 |
75 | // Send the response or close the connection
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPRequest.swift:11:12: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPRequest: HTTPMessage {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
12 | public typealias Params = [String: String]
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:77:27: warning: capture of 'response' with non-sendable type 'HTTPResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | // Send the response or close the connection
76 | self.connectionsQueue.async {
77 | if let response = response {
| `- warning: capture of 'response' with non-sendable type 'HTTPResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | connection.send(response: response, toRequest: request)
79 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPResponse.swift:11:12: note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPResponse: HTTPMessage {
| `- note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
12 | public typealias Handler = (HTTPResponse, Error) -> Void
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:78:11: warning: capture of 'connection' with non-sendable type 'HTTPConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | self.connectionsQueue.async {
77 | if let response = response {
78 | connection.send(response: response, toRequest: request)
| `- warning: capture of 'connection' with non-sendable type 'HTTPConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | } else {
80 | connection.close(immediately: true)
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPConnection.swift:22:14: note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
20 | // MARK: HTTPConnection
21 |
22 | public class HTTPConnection: TCPConnection {
| `- note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
23 | public weak var delegate: HTTPConnectionDelegate?
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:78:58: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | self.connectionsQueue.async {
77 | if let response = response {
78 | connection.send(response: response, toRequest: request)
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | } else {
80 | connection.close(immediately: true)
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPRequest.swift:11:12: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPRequest: HTTPMessage {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
12 | public typealias Params = [String: String]
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:110:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
108 | // Call the delegate
109 | delegateQueue.async { [weak self] in
110 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | self.webSocketDelegate?.server(self, webSocketDidConnect: webSocketConnection, handshake: request)
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:111:65: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | delegateQueue.async { [weak self] in
110 | guard let self = self else { return }
111 | self.webSocketDelegate?.server(self, webSocketDidConnect: webSocketConnection, handshake: request)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:111:97: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | delegateQueue.async { [weak self] in
110 | guard let self = self else { return }
111 | self.webSocketDelegate?.server(self, webSocketDidConnect: webSocketConnection, handshake: request)
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPRequest.swift:11:12: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPRequest: HTTPMessage {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
12 | public typealias Params = [String: String]
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:91:14: warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
89 |
90 | /// 101 Switching Protocols: requester has asked the server to switch protocols and the server has agreed to do so.
91 | static let switchingProtocols = HTTPStatus(code: 101, phrase: "Switching Protocols")
| |- warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'switchingProtocols' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
92 |
93 | /// 102 Processing: server has received and is processing the request, but no response is available yet.
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:205:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
203 | public func listenerDisconnected(_ listener: TCPListener, error: Error?) {
204 | delegateQueue.async { [weak self] in
205 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
206 | self.delegate?.serverDidStop(self, error: error)
207 | self.webSocketDelegate?.serverDidDisconnect(self)
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:242:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
240 | public func connection(_ webSocketConnection: WebSocketConnection, didReceiveMessage message: WebSocketMessage) {
241 | delegateQueue.async { [weak self] in
242 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
243 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didReceiveMessage: message)
244 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:243:55: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
241 | delegateQueue.async { [weak self] in
242 | guard let self = self else { return }
243 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didReceiveMessage: message)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
244 | }
245 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:243:95: warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
241 | delegateQueue.async { [weak self] in
242 | guard let self = self else { return }
243 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didReceiveMessage: message)
| `- warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
244 | }
245 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketMessage.swift:11:12: note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class WebSocketMessage {
| `- note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
12 | public var finBit = true
13 | public var maskBit = true
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:250:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
248 | public func connection(_ webSocketConnection: WebSocketConnection, didSendMessage message: WebSocketMessage) {
249 | delegateQueue.async { [weak self] in
250 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
251 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didSendMessage: message)
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:251:55: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
249 | delegateQueue.async { [weak self] in
250 | guard let self = self else { return }
251 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didSendMessage: message)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
252 | }
253 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:251:92: warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
249 | delegateQueue.async { [weak self] in
250 | guard let self = self else { return }
251 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didSendMessage: message)
| `- warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
252 | }
253 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketMessage.swift:11:12: note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class WebSocketMessage {
| `- note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
12 | public var finBit = true
13 | public var maskBit = true
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:260:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
258 |
259 | delegateQueue.async { [weak self] in
260 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
261 | self.webSocketDelegate?.server(self, webSocketDidDisconnect: webSocketConnection, error: error)
262 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:261:68: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | delegateQueue.async { [weak self] in
260 | guard let self = self else { return }
261 | self.webSocketDelegate?.server(self, webSocketDidDisconnect: webSocketConnection, error: error)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 | }
263 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
[66/74] Compiling Telegraph ServerDelegates.swift
/Users/admin/builder/spi-builder-workspace/Sources/Transport/DataStream.swift:13:10: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
11 | public final class DataStream {
12 | private let data: Data
13 | public private (set) var position: Int
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
14 |
15 | /// Initializes a new DataStream.
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:70:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
68 | open func handleIncoming(request: HTTPRequest, connection: HTTPConnection, error: Error?) {
69 | workerQueue.addOperation { [weak self, weak connection] in
70 | guard let self = self, let connection = connection else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |
72 | // Get a response for the request
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:70:47: warning: capture of 'connection' with non-sendable type 'HTTPConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
68 | open func handleIncoming(request: HTTPRequest, connection: HTTPConnection, error: Error?) {
69 | workerQueue.addOperation { [weak self, weak connection] in
70 | guard let self = self, let connection = connection else { return }
| `- warning: capture of 'connection' with non-sendable type 'HTTPConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |
72 | // Get a response for the request
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPConnection.swift:22:14: note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
20 | // MARK: HTTPConnection
21 |
22 | public class HTTPConnection: TCPConnection {
| `- note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
23 | public weak var delegate: HTTPConnectionDelegate?
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:73:48: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |
72 | // Get a response for the request
73 | let response = self.responseFor(request: request, error: error)
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 |
75 | // Send the response or close the connection
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPRequest.swift:11:12: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPRequest: HTTPMessage {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
12 | public typealias Params = [String: String]
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:77:27: warning: capture of 'response' with non-sendable type 'HTTPResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | // Send the response or close the connection
76 | self.connectionsQueue.async {
77 | if let response = response {
| `- warning: capture of 'response' with non-sendable type 'HTTPResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | connection.send(response: response, toRequest: request)
79 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPResponse.swift:11:12: note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPResponse: HTTPMessage {
| `- note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
12 | public typealias Handler = (HTTPResponse, Error) -> Void
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:78:11: warning: capture of 'connection' with non-sendable type 'HTTPConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | self.connectionsQueue.async {
77 | if let response = response {
78 | connection.send(response: response, toRequest: request)
| `- warning: capture of 'connection' with non-sendable type 'HTTPConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | } else {
80 | connection.close(immediately: true)
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPConnection.swift:22:14: note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
20 | // MARK: HTTPConnection
21 |
22 | public class HTTPConnection: TCPConnection {
| `- note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
23 | public weak var delegate: HTTPConnectionDelegate?
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:78:58: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | self.connectionsQueue.async {
77 | if let response = response {
78 | connection.send(response: response, toRequest: request)
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | } else {
80 | connection.close(immediately: true)
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPRequest.swift:11:12: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPRequest: HTTPMessage {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
12 | public typealias Params = [String: String]
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:110:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
108 | // Call the delegate
109 | delegateQueue.async { [weak self] in
110 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | self.webSocketDelegate?.server(self, webSocketDidConnect: webSocketConnection, handshake: request)
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:111:65: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | delegateQueue.async { [weak self] in
110 | guard let self = self else { return }
111 | self.webSocketDelegate?.server(self, webSocketDidConnect: webSocketConnection, handshake: request)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:111:97: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | delegateQueue.async { [weak self] in
110 | guard let self = self else { return }
111 | self.webSocketDelegate?.server(self, webSocketDidConnect: webSocketConnection, handshake: request)
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPRequest.swift:11:12: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPRequest: HTTPMessage {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
12 | public typealias Params = [String: String]
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:91:14: warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
89 |
90 | /// 101 Switching Protocols: requester has asked the server to switch protocols and the server has agreed to do so.
91 | static let switchingProtocols = HTTPStatus(code: 101, phrase: "Switching Protocols")
| |- warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'switchingProtocols' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
92 |
93 | /// 102 Processing: server has received and is processing the request, but no response is available yet.
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:205:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
203 | public func listenerDisconnected(_ listener: TCPListener, error: Error?) {
204 | delegateQueue.async { [weak self] in
205 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
206 | self.delegate?.serverDidStop(self, error: error)
207 | self.webSocketDelegate?.serverDidDisconnect(self)
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:242:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
240 | public func connection(_ webSocketConnection: WebSocketConnection, didReceiveMessage message: WebSocketMessage) {
241 | delegateQueue.async { [weak self] in
242 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
243 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didReceiveMessage: message)
244 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:243:55: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
241 | delegateQueue.async { [weak self] in
242 | guard let self = self else { return }
243 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didReceiveMessage: message)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
244 | }
245 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:243:95: warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
241 | delegateQueue.async { [weak self] in
242 | guard let self = self else { return }
243 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didReceiveMessage: message)
| `- warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
244 | }
245 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketMessage.swift:11:12: note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class WebSocketMessage {
| `- note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
12 | public var finBit = true
13 | public var maskBit = true
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:250:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
248 | public func connection(_ webSocketConnection: WebSocketConnection, didSendMessage message: WebSocketMessage) {
249 | delegateQueue.async { [weak self] in
250 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
251 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didSendMessage: message)
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:251:55: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
249 | delegateQueue.async { [weak self] in
250 | guard let self = self else { return }
251 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didSendMessage: message)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
252 | }
253 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:251:92: warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
249 | delegateQueue.async { [weak self] in
250 | guard let self = self else { return }
251 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didSendMessage: message)
| `- warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
252 | }
253 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketMessage.swift:11:12: note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class WebSocketMessage {
| `- note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
12 | public var finBit = true
13 | public var maskBit = true
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:260:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
258 |
259 | delegateQueue.async { [weak self] in
260 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
261 | self.webSocketDelegate?.server(self, webSocketDidDisconnect: webSocketConnection, error: error)
262 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:261:68: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | delegateQueue.async { [weak self] in
260 | guard let self = self else { return }
261 | self.webSocketDelegate?.server(self, webSocketDidDisconnect: webSocketConnection, error: error)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 | }
263 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
[67/74] Compiling Telegraph DataStream.swift
/Users/admin/builder/spi-builder-workspace/Sources/Transport/DataStream.swift:13:10: warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
11 | public final class DataStream {
12 | private let data: Data
13 | public private (set) var position: Int
| `- warning: extraneous whitespace between attribute name and '('; this is an error in the Swift 6 language mode
14 |
15 | /// Initializes a new DataStream.
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:70:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
68 | open func handleIncoming(request: HTTPRequest, connection: HTTPConnection, error: Error?) {
69 | workerQueue.addOperation { [weak self, weak connection] in
70 | guard let self = self, let connection = connection else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |
72 | // Get a response for the request
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:70:47: warning: capture of 'connection' with non-sendable type 'HTTPConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
68 | open func handleIncoming(request: HTTPRequest, connection: HTTPConnection, error: Error?) {
69 | workerQueue.addOperation { [weak self, weak connection] in
70 | guard let self = self, let connection = connection else { return }
| `- warning: capture of 'connection' with non-sendable type 'HTTPConnection?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |
72 | // Get a response for the request
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPConnection.swift:22:14: note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
20 | // MARK: HTTPConnection
21 |
22 | public class HTTPConnection: TCPConnection {
| `- note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
23 | public weak var delegate: HTTPConnectionDelegate?
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:73:48: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |
72 | // Get a response for the request
73 | let response = self.responseFor(request: request, error: error)
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 |
75 | // Send the response or close the connection
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPRequest.swift:11:12: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPRequest: HTTPMessage {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
12 | public typealias Params = [String: String]
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:77:27: warning: capture of 'response' with non-sendable type 'HTTPResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | // Send the response or close the connection
76 | self.connectionsQueue.async {
77 | if let response = response {
| `- warning: capture of 'response' with non-sendable type 'HTTPResponse?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | connection.send(response: response, toRequest: request)
79 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPResponse.swift:11:12: note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPResponse: HTTPMessage {
| `- note: class 'HTTPResponse' does not conform to the 'Sendable' protocol
12 | public typealias Handler = (HTTPResponse, Error) -> Void
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:78:11: warning: capture of 'connection' with non-sendable type 'HTTPConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | self.connectionsQueue.async {
77 | if let response = response {
78 | connection.send(response: response, toRequest: request)
| `- warning: capture of 'connection' with non-sendable type 'HTTPConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | } else {
80 | connection.close(immediately: true)
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPConnection.swift:22:14: note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
20 | // MARK: HTTPConnection
21 |
22 | public class HTTPConnection: TCPConnection {
| `- note: class 'HTTPConnection' does not conform to the 'Sendable' protocol
23 | public weak var delegate: HTTPConnectionDelegate?
24 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:78:58: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | self.connectionsQueue.async {
77 | if let response = response {
78 | connection.send(response: response, toRequest: request)
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | } else {
80 | connection.close(immediately: true)
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPRequest.swift:11:12: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPRequest: HTTPMessage {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
12 | public typealias Params = [String: String]
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:110:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
108 | // Call the delegate
109 | delegateQueue.async { [weak self] in
110 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | self.webSocketDelegate?.server(self, webSocketDidConnect: webSocketConnection, handshake: request)
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:111:65: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | delegateQueue.async { [weak self] in
110 | guard let self = self else { return }
111 | self.webSocketDelegate?.server(self, webSocketDidConnect: webSocketConnection, handshake: request)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:111:97: warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 | delegateQueue.async { [weak self] in
110 | guard let self = self else { return }
111 | self.webSocketDelegate?.server(self, webSocketDidConnect: webSocketConnection, handshake: request)
| `- warning: capture of 'request' with non-sendable type 'HTTPRequest' in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPRequest.swift:11:12: note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class HTTPRequest: HTTPMessage {
| `- note: class 'HTTPRequest' does not conform to the 'Sendable' protocol
12 | public typealias Params = [String: String]
13 |
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/HTTP/Models/HTTPStatus.swift:91:14: warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
11 | //
12 |
13 | public struct HTTPStatus: Hashable {
| `- note: consider making struct 'HTTPStatus' conform to the 'Sendable' protocol
14 | /// The numeric code of the status (e.g. 404).
15 | public let code: Int
:
89 |
90 | /// 101 Switching Protocols: requester has asked the server to switch protocols and the server has agreed to do so.
91 | static let switchingProtocols = HTTPStatus(code: 101, phrase: "Switching Protocols")
| |- warning: static property 'switchingProtocols' is not concurrency-safe because non-'Sendable' type 'HTTPStatus' may have shared mutable state; this is an error in the Swift 6 language mode
| |- note: annotate 'switchingProtocols' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
92 |
93 | /// 102 Processing: server has received and is processing the request, but no response is available yet.
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:205:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
203 | public func listenerDisconnected(_ listener: TCPListener, error: Error?) {
204 | delegateQueue.async { [weak self] in
205 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
206 | self.delegate?.serverDidStop(self, error: error)
207 | self.webSocketDelegate?.serverDidDisconnect(self)
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:242:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
240 | public func connection(_ webSocketConnection: WebSocketConnection, didReceiveMessage message: WebSocketMessage) {
241 | delegateQueue.async { [weak self] in
242 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
243 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didReceiveMessage: message)
244 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:243:55: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
241 | delegateQueue.async { [weak self] in
242 | guard let self = self else { return }
243 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didReceiveMessage: message)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
244 | }
245 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:243:95: warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
241 | delegateQueue.async { [weak self] in
242 | guard let self = self else { return }
243 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didReceiveMessage: message)
| `- warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
244 | }
245 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketMessage.swift:11:12: note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class WebSocketMessage {
| `- note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
12 | public var finBit = true
13 | public var maskBit = true
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:250:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
248 | public func connection(_ webSocketConnection: WebSocketConnection, didSendMessage message: WebSocketMessage) {
249 | delegateQueue.async { [weak self] in
250 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
251 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didSendMessage: message)
252 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:251:55: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
249 | delegateQueue.async { [weak self] in
250 | guard let self = self else { return }
251 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didSendMessage: message)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
252 | }
253 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:251:92: warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
249 | delegateQueue.async { [weak self] in
250 | guard let self = self else { return }
251 | self.webSocketDelegate?.server(self, webSocket: webSocketConnection, didSendMessage: message)
| `- warning: capture of 'message' with non-sendable type 'WebSocketMessage' in a `@Sendable` closure; this is an error in the Swift 6 language mode
252 | }
253 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketMessage.swift:11:12: note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
9 | import Foundation
10 |
11 | open class WebSocketMessage {
| `- note: class 'WebSocketMessage' does not conform to the 'Sendable' protocol
12 | public var finBit = true
13 | public var maskBit = true
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:260:24: warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | open class Server {
| `- note: class 'Server' does not conform to the 'Sendable' protocol
12 | public weak var delegate: ServerDelegate?
13 | public var delegateQueue = DispatchQueue(label: "Telegraph.Server.delegate")
:
258 |
259 | delegateQueue.async { [weak self] in
260 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Server?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
261 | self.webSocketDelegate?.server(self, webSocketDidDisconnect: webSocketConnection, error: error)
262 | }
/Users/admin/builder/spi-builder-workspace/Sources/Server/Server.swift:261:68: warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
259 | delegateQueue.async { [weak self] in
260 | guard let self = self else { return }
261 | self.webSocketDelegate?.server(self, webSocketDidDisconnect: webSocketConnection, error: error)
| `- warning: capture of 'webSocketConnection' with non-sendable type 'WebSocketConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
262 | }
263 | }
/Users/admin/builder/spi-builder-workspace/Sources/Protocols/WebSockets/Models/WebSocketConnection.swift:21:12: note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
19 | // MARK: WebSocketConnection
20 |
21 | open class WebSocketConnection: TCPConnection, WebSocket {
| `- note: class 'WebSocketConnection' does not conform to the 'Sendable' protocol
22 | public weak var delegate: WebSocketConnectionDelegate?
23 |
[68/74] Compiling Telegraph FileManager+Ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/RFC1123.swift:13:21: warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct RFC1123 {
12 | /// A shared RFC1123 DateFormatter (thread-safe since iOS 7 and macOS 10.9).
13 | public static var formatter = DateFormatter.rfc1123
| |- warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
[69/74] Compiling Telegraph NSRegularExpression+Ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/RFC1123.swift:13:21: warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct RFC1123 {
12 | /// A shared RFC1123 DateFormatter (thread-safe since iOS 7 and macOS 10.9).
13 | public static var formatter = DateFormatter.rfc1123
| |- warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
[70/74] Compiling Telegraph String+Ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/RFC1123.swift:13:21: warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct RFC1123 {
12 | /// A shared RFC1123 DateFormatter (thread-safe since iOS 7 and macOS 10.9).
13 | public static var formatter = DateFormatter.rfc1123
| |- warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
[71/74] Compiling Telegraph UInt+Ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/RFC1123.swift:13:21: warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct RFC1123 {
12 | /// A shared RFC1123 DateFormatter (thread-safe since iOS 7 and macOS 10.9).
13 | public static var formatter = DateFormatter.rfc1123
| |- warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
[72/74] Compiling Telegraph URL+Ext.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/RFC1123.swift:13:21: warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct RFC1123 {
12 | /// A shared RFC1123 DateFormatter (thread-safe since iOS 7 and macOS 10.9).
13 | public static var formatter = DateFormatter.rfc1123
| |- warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
[73/74] Compiling Telegraph RFC1123.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/RFC1123.swift:13:21: warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct RFC1123 {
12 | /// A shared RFC1123 DateFormatter (thread-safe since iOS 7 and macOS 10.9).
13 | public static var formatter = DateFormatter.rfc1123
| |- warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
[74/74] Compiling Telegraph SynchronizedSet.swift
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/RFC1123.swift:13:21: warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
11 | public struct RFC1123 {
12 | /// A shared RFC1123 DateFormatter (thread-safe since iOS 7 and macOS 10.9).
13 | public static var formatter = DateFormatter.rfc1123
| |- warning: static property 'formatter' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'formatter' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'formatter' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 | }
15 |
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:37:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
35 | func insert(_ element: Element) {
36 | queue.async(flags: .barrier) { [weak self] in
37 | self?.innerSet.insert(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 | }
39 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:7: warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: generic class 'SynchronizedSet' does not conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'self' with non-sendable type 'SynchronizedSet<Element>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
/Users/admin/builder/spi-builder-workspace/Sources/Helpers/SynchronizedSet.swift:44:29: warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
9 | import Foundation
10 |
11 | public class SynchronizedSet<Element: Hashable> {
| `- note: consider making generic parameter 'Element' conform to the 'Sendable' protocol
12 | private var innerSet = Set<Element>()
13 | private let queue = DispatchQueue(label: "Telegraph.SynchronizedSet", attributes: .concurrent)
:
42 | func remove(_ element: Element) {
43 | queue.async(flags: .barrier) { [weak self] in
44 | self?.innerSet.remove(element)
| `- warning: capture of 'element' with non-sendable type 'Element' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 | }
46 | }
Build complete! (19.63s)
Build complete.
{
"dependencies" : [
{
"identity" : "cocoaasyncsocket",
"requirement" : {
"range" : [
{
"lower_bound" : "7.6.5",
"upper_bound" : "8.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/robbiehanson/CocoaAsyncSocket.git"
},
{
"identity" : "httpparserc",
"requirement" : {
"range" : [
{
"lower_bound" : "9.2.0",
"upper_bound" : "10.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/Building42/HTTPParserC.git"
}
],
"manifest_display_name" : "Telegraph",
"name" : "Telegraph",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "ios",
"version" : "9.0"
},
{
"name" : "tvos",
"version" : "9.0"
},
{
"name" : "macos",
"version" : "10.10"
}
],
"products" : [
{
"name" : "Telegraph",
"targets" : [
"Telegraph"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "TelegraphTests",
"module_type" : "SwiftTarget",
"name" : "TelegraphTests",
"path" : "Tests",
"product_dependencies" : [
"CocoaAsyncSocket",
"HTTPParserC"
],
"sources" : [
"HelperTests.swift",
"Host/AppDelegate.swift",
"RouteTests.swift",
"SecurityTests.swift",
"ServerTests.swift",
"URITests.swift",
"URLTests.swift"
],
"target_dependencies" : [
"Telegraph"
],
"type" : "test"
},
{
"c99name" : "Telegraph",
"module_type" : "SwiftTarget",
"name" : "Telegraph",
"path" : "Sources",
"product_dependencies" : [
"CocoaAsyncSocket",
"HTTPParserC"
],
"product_memberships" : [
"Telegraph"
],
"sources" : [
"Clients/Client+Config.swift",
"Clients/WebSocketClient.swift",
"Clients/WebSocketClientError.swift",
"Helpers/Deprecations.swift",
"Helpers/DispatchTimer.swift",
"Helpers/Extensions/Array+Ext.swift",
"Helpers/Extensions/Data+Ext.swift",
"Helpers/Extensions/FileManager+Ext.swift",
"Helpers/Extensions/NSRegularExpression+Ext.swift",
"Helpers/Extensions/String+Ext.swift",
"Helpers/Extensions/UInt+Ext.swift",
"Helpers/Extensions/URL+Ext.swift",
"Helpers/RFC1123.swift",
"Helpers/SynchronizedSet.swift",
"Protocols/HTTP/Handlers/HTTPErrorDefaultHandler.swift",
"Protocols/HTTP/Handlers/HTTPErrorHandler.swift",
"Protocols/HTTP/Handlers/HTTPFileHandler.swift",
"Protocols/HTTP/Handlers/HTTPRequestHandler.swift",
"Protocols/HTTP/Models/HTTPConfig.swift",
"Protocols/HTTP/Models/HTTPConnection.swift",
"Protocols/HTTP/Models/HTTPError.swift",
"Protocols/HTTP/Models/HTTPHeader+Common.swift",
"Protocols/HTTP/Models/HTTPHeader.swift",
"Protocols/HTTP/Models/HTTPMessage.swift",
"Protocols/HTTP/Models/HTTPMethod.swift",
"Protocols/HTTP/Models/HTTPParser+Raw.swift",
"Protocols/HTTP/Models/HTTPParser.swift",
"Protocols/HTTP/Models/HTTPRequest+Host.swift",
"Protocols/HTTP/Models/HTTPRequest.swift",
"Protocols/HTTP/Models/HTTPResponse.swift",
"Protocols/HTTP/Models/HTTPStatus.swift",
"Protocols/HTTP/Models/HTTPVersion.swift",
"Protocols/HTTP/Routing/HTTPRoute.swift",
"Protocols/HTTP/Routing/HTTPRouteHandler.swift",
"Protocols/HTTP/Routing/Server+Routing.swift",
"Protocols/WebSockets/Handlers/HTTPWebSocketHandler.swift",
"Protocols/WebSockets/Handlers/WebSocketErrorDefaultHandler.swift",
"Protocols/WebSockets/Handlers/WebSocketErrorHandler.swift",
"Protocols/WebSockets/Handlers/WebSocketMessageDefaultHandler.swift",
"Protocols/WebSockets/Handlers/WebSocketMessageHandler.swift",
"Protocols/WebSockets/Models/HTTPHeader+WebSocket.swift",
"Protocols/WebSockets/Models/HTTPMessage+WebSocket.swift",
"Protocols/WebSockets/Models/WebSocket.swift",
"Protocols/WebSockets/Models/WebSocketConfig.swift",
"Protocols/WebSockets/Models/WebSocketConnection.swift",
"Protocols/WebSockets/Models/WebSocketError.swift",
"Protocols/WebSockets/Models/WebSocketMessage+Write.swift",
"Protocols/WebSockets/Models/WebSocketMessage.swift",
"Protocols/WebSockets/Models/WebSocketParser.swift",
"Security/Certificate.swift",
"Security/CertificateIdentity.swift",
"Security/KeychainError.swift",
"Security/KeychainManager.swift",
"Security/SHA1.swift",
"Security/TLSConfig.swift",
"Security/TLSPolicy.swift",
"Server/Server+Config.swift",
"Server/Server.swift",
"Server/ServerDelegates.swift",
"Transport/DataStream.swift",
"Transport/Endpoint.swift",
"Transport/Streams.swift",
"Transport/TCPConnection.swift",
"Transport/TCPListener.swift",
"Transport/TCPSocket.swift",
"Transport/URI.swift"
],
"type" : "library"
}
],
"tools_version" : "5.1"
}
Done.