The Swift Package Index logo.Swift Package Index

Build Information

Successful build of SignalRClient, reference dev (e9a4d8), with Swift 6.1 for Linux on 1 Dec 2025 14:08:57 UTC.

Swift 6 data race errors: 15

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-3":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1

Build Log

 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
    :
115 |     }
116 |
117 |     public func send(request: HttpRequest) async throws -> (
    |                 `- warning: non-sendable type '(StringOrData, HttpResponse)' cannot be returned from actor-isolated implementation to caller of protocol requirement 'send(request:)'; this is an error in the Swift 6 language mode
118 |         StringOrData, HttpResponse
119 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:132:58: warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from nonisolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
    :
130 |         setAuthorizationHeader(request: &mutableRequest)
131 |
132 |         var (data, httpResponse) = try await innerClient.send(
    |                                                          `- warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from nonisolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
133 |             request: mutableRequest)
134 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:139:58: warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from nonisolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
    :
137 |             accessToken = try await factory()
138 |             setAuthorizationHeader(request: &mutableRequest)
139 |             (data, httpResponse) = try await innerClient.send(
    |                                                          `- warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from nonisolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
140 |                 request: mutableRequest)
141 |
[27/40] Compiling SignalRClient AtomicState.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:67:17: warning: non-sendable type '(StringOrData, HttpResponse)' cannot be returned from actor-isolated implementation to caller of protocol requirement 'send(request:)'; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
    :
 65 |     }
 66 |
 67 |     public func send(request: HttpRequest) async throws -> (
    |                 `- warning: non-sendable type '(StringOrData, HttpResponse)' cannot be returned from actor-isolated implementation to caller of protocol requirement 'send(request:)'; this is an error in the Swift 6 language mode
 68 |         StringOrData, HttpResponse
 69 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:117:17: warning: non-sendable type '(StringOrData, HttpResponse)' cannot be returned from actor-isolated implementation to caller of protocol requirement 'send(request:)'; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
    :
115 |     }
116 |
117 |     public func send(request: HttpRequest) async throws -> (
    |                 `- warning: non-sendable type '(StringOrData, HttpResponse)' cannot be returned from actor-isolated implementation to caller of protocol requirement 'send(request:)'; this is an error in the Swift 6 language mode
118 |         StringOrData, HttpResponse
119 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:132:58: warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from nonisolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
    :
130 |         setAuthorizationHeader(request: &mutableRequest)
131 |
132 |         var (data, httpResponse) = try await innerClient.send(
    |                                                          `- warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from nonisolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
133 |             request: mutableRequest)
134 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:139:58: warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from nonisolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
    :
137 |             accessToken = try await factory()
138 |             setAuthorizationHeader(request: &mutableRequest)
139 |             (data, httpResponse) = try await innerClient.send(
    |                                                          `- warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from nonisolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
140 |                 request: mutableRequest)
141 |
[28/40] Compiling SignalRClient ConnectionProtocol.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:67:17: warning: non-sendable type '(StringOrData, HttpResponse)' cannot be returned from actor-isolated implementation to caller of protocol requirement 'send(request:)'; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
    :
 65 |     }
 66 |
 67 |     public func send(request: HttpRequest) async throws -> (
    |                 `- warning: non-sendable type '(StringOrData, HttpResponse)' cannot be returned from actor-isolated implementation to caller of protocol requirement 'send(request:)'; this is an error in the Swift 6 language mode
 68 |         StringOrData, HttpResponse
 69 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:117:17: warning: non-sendable type '(StringOrData, HttpResponse)' cannot be returned from actor-isolated implementation to caller of protocol requirement 'send(request:)'; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
    :
115 |     }
116 |
117 |     public func send(request: HttpRequest) async throws -> (
    |                 `- warning: non-sendable type '(StringOrData, HttpResponse)' cannot be returned from actor-isolated implementation to caller of protocol requirement 'send(request:)'; this is an error in the Swift 6 language mode
118 |         StringOrData, HttpResponse
119 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:132:58: warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from nonisolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
    :
130 |         setAuthorizationHeader(request: &mutableRequest)
131 |
132 |         var (data, httpResponse) = try await innerClient.send(
    |                                                          `- warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from nonisolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
133 |             request: mutableRequest)
134 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:139:58: warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from nonisolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
    :
137 |             accessToken = try await factory()
138 |             setAuthorizationHeader(request: &mutableRequest)
139 |             (data, httpResponse) = try await innerClient.send(
    |                                                          `- warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from nonisolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
140 |                 request: mutableRequest)
141 |
[29/40] Compiling SignalRClient HandshakeProtocol.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:67:17: warning: non-sendable type '(StringOrData, HttpResponse)' cannot be returned from actor-isolated implementation to caller of protocol requirement 'send(request:)'; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
    :
 65 |     }
 66 |
 67 |     public func send(request: HttpRequest) async throws -> (
    |                 `- warning: non-sendable type '(StringOrData, HttpResponse)' cannot be returned from actor-isolated implementation to caller of protocol requirement 'send(request:)'; this is an error in the Swift 6 language mode
 68 |         StringOrData, HttpResponse
 69 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:117:17: warning: non-sendable type '(StringOrData, HttpResponse)' cannot be returned from actor-isolated implementation to caller of protocol requirement 'send(request:)'; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
    :
115 |     }
116 |
117 |     public func send(request: HttpRequest) async throws -> (
    |                 `- warning: non-sendable type '(StringOrData, HttpResponse)' cannot be returned from actor-isolated implementation to caller of protocol requirement 'send(request:)'; this is an error in the Swift 6 language mode
118 |         StringOrData, HttpResponse
119 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:132:58: warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from nonisolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
    :
130 |         setAuthorizationHeader(request: &mutableRequest)
131 |
132 |         var (data, httpResponse) = try await innerClient.send(
    |                                                          `- warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from nonisolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
133 |             request: mutableRequest)
134 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:139:58: warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from nonisolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
    :
137 |             accessToken = try await factory()
138 |             setAuthorizationHeader(request: &mutableRequest)
139 |             (data, httpResponse) = try await innerClient.send(
    |                                                          `- warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from nonisolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
140 |                 request: mutableRequest)
141 |
[30/40] Compiling SignalRClient HttpClient.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:67:17: warning: non-sendable type '(StringOrData, HttpResponse)' cannot be returned from actor-isolated implementation to caller of protocol requirement 'send(request:)'; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
    :
 65 |     }
 66 |
 67 |     public func send(request: HttpRequest) async throws -> (
    |                 `- warning: non-sendable type '(StringOrData, HttpResponse)' cannot be returned from actor-isolated implementation to caller of protocol requirement 'send(request:)'; this is an error in the Swift 6 language mode
 68 |         StringOrData, HttpResponse
 69 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:117:17: warning: non-sendable type '(StringOrData, HttpResponse)' cannot be returned from actor-isolated implementation to caller of protocol requirement 'send(request:)'; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
    :
115 |     }
116 |
117 |     public func send(request: HttpRequest) async throws -> (
    |                 `- warning: non-sendable type '(StringOrData, HttpResponse)' cannot be returned from actor-isolated implementation to caller of protocol requirement 'send(request:)'; this is an error in the Swift 6 language mode
118 |         StringOrData, HttpResponse
119 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:132:58: warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from nonisolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
    :
130 |         setAuthorizationHeader(request: &mutableRequest)
131 |
132 |         var (data, httpResponse) = try await innerClient.send(
    |                                                          `- warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from nonisolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
133 |             request: mutableRequest)
134 |
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:139:58: warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from nonisolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
    :
137 |             accessToken = try await factory()
138 |             setAuthorizationHeader(request: &mutableRequest)
139 |             (data, httpResponse) = try await innerClient.send(
    |                                                          `- warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from nonisolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
140 |                 request: mutableRequest)
141 |
[31/40] Emitting module SignalRClient
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:67:17: warning: non-sendable type '(StringOrData, HttpResponse)' cannot be returned from actor-isolated implementation to caller of protocol requirement 'send(request:)'; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
    :
 65 |     }
 66 |
 67 |     public func send(request: HttpRequest) async throws -> (
    |                 `- warning: non-sendable type '(StringOrData, HttpResponse)' cannot be returned from actor-isolated implementation to caller of protocol requirement 'send(request:)'; this is an error in the Swift 6 language mode
 68 |         StringOrData, HttpResponse
 69 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:117:17: warning: non-sendable type '(StringOrData, HttpResponse)' cannot be returned from actor-isolated implementation to caller of protocol requirement 'send(request:)'; this is an error in the Swift 6 language mode
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
    :
115 |     }
116 |
117 |     public func send(request: HttpRequest) async throws -> (
    |                 `- warning: non-sendable type '(StringOrData, HttpResponse)' cannot be returned from actor-isolated implementation to caller of protocol requirement 'send(request:)'; this is an error in the Swift 6 language mode
118 |         StringOrData, HttpResponse
119 |     ) {
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:87:16: warning: non-sendable type '[ConnectionFeature : Any]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'features'; this is an error in the Swift 6 language mode
 85 |     private var inherentKeepAlivePrivate: Bool = false
 86 |
 87 |     public var features: [ConnectionFeature: Any] = [:]
    |                `- warning: non-sendable type '[ConnectionFeature : Any]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'features'; this is an error in the Swift 6 language mode
 88 |     public var baseUrl: String
 89 |     public var connectionId: String?
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:551:17: warning: non-sendable parameter type 'Any' cannot be sent from caller of protocol requirement 'setFeature(feature:value:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
549 |     }
550 |
551 |     public func setFeature(feature: ConnectionFeature, value: Any) async {
    |                 `- warning: non-sendable parameter type 'Any' cannot be sent from caller of protocol requirement 'setFeature(feature:value:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
552 |         features[feature] = value
553 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:588:31: warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
586 |         // After connection open, perform handshake
587 |         var version = hubProtocol.version
588 |         if !(await connection.features[ConnectionFeature.Reconnect] as? Bool ?? false) {
    |                               `- warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
589 |             // Stateful Reconnect starts with HubProtocol version 2, newer clients connecting to older servers will fail to connect due to
590 |             // the handshake only supporting version 1, so we will try to send version 1 during the handshake to keep old servers working.
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:628:63: warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
626 |             }
627 |
628 |             let useStatefulReconnect = await (self.connection.features[ConnectionFeature.Reconnect] as? Bool) == true
    |                                                               `- warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
629 |             if useStatefulReconnect {
630 |                 self.messageBuffer = MessageBuffer(
/host/spi-builder-workspace/Sources/SignalRClient/TransferFormat.swift:10:23: warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'HttpTransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | /// Specifies a specific HTTP transport type.
 7 | public struct HttpTransportType: OptionSet {
   |               `- note: consider making struct 'HttpTransportType' conform to the 'Sendable' protocol
 8 |     public let rawValue: Int
 9 |
10 |     public static let none = HttpTransportType([])
   |                       |- warning: static property 'none' is not concurrency-safe because non-'Sendable' type 'HttpTransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'none' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
11 |     public static let webSockets = HttpTransportType(rawValue: 1 << 0)
12 |     public static let serverSentEvents = HttpTransportType(rawValue: 1 << 1)
/host/spi-builder-workspace/Sources/SignalRClient/TransferFormat.swift:11:23: warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'HttpTransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | /// Specifies a specific HTTP transport type.
 7 | public struct HttpTransportType: OptionSet {
   |               `- note: consider making struct 'HttpTransportType' conform to the 'Sendable' protocol
 8 |     public let rawValue: Int
 9 |
10 |     public static let none = HttpTransportType([])
11 |     public static let webSockets = HttpTransportType(rawValue: 1 << 0)
   |                       |- warning: static property 'webSockets' is not concurrency-safe because non-'Sendable' type 'HttpTransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'webSockets' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
12 |     public static let serverSentEvents = HttpTransportType(rawValue: 1 << 1)
13 |     public static let longPolling = HttpTransportType(rawValue: 1 << 2)
/host/spi-builder-workspace/Sources/SignalRClient/TransferFormat.swift:12:23: warning: static property 'serverSentEvents' is not concurrency-safe because non-'Sendable' type 'HttpTransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | /// Specifies a specific HTTP transport type.
 7 | public struct HttpTransportType: OptionSet {
   |               `- note: consider making struct 'HttpTransportType' conform to the 'Sendable' protocol
 8 |     public let rawValue: Int
 9 |
10 |     public static let none = HttpTransportType([])
11 |     public static let webSockets = HttpTransportType(rawValue: 1 << 0)
12 |     public static let serverSentEvents = HttpTransportType(rawValue: 1 << 1)
   |                       |- warning: static property 'serverSentEvents' is not concurrency-safe because non-'Sendable' type 'HttpTransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'serverSentEvents' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
13 |     public static let longPolling = HttpTransportType(rawValue: 1 << 2)
14 |
/host/spi-builder-workspace/Sources/SignalRClient/TransferFormat.swift:13:23: warning: static property 'longPolling' is not concurrency-safe because non-'Sendable' type 'HttpTransportType' may have shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | /// Specifies a specific HTTP transport type.
 7 | public struct HttpTransportType: OptionSet {
   |               `- note: consider making struct 'HttpTransportType' conform to the 'Sendable' protocol
 8 |     public let rawValue: Int
 9 |
   :
11 |     public static let webSockets = HttpTransportType(rawValue: 1 << 0)
12 |     public static let serverSentEvents = HttpTransportType(rawValue: 1 << 1)
13 |     public static let longPolling = HttpTransportType(rawValue: 1 << 2)
   |                       |- warning: static property 'longPolling' is not concurrency-safe because non-'Sendable' type 'HttpTransportType' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: add '@MainActor' to make static property 'longPolling' part of global actor 'MainActor'
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
14 |
15 |     public init(rawValue: Int) {
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:17:7: warning: non-final class 'EventSource' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 15 | //  1. Reconnect, last Id
 16 | //  2. event name, event handlers
 17 | class EventSource: NSObject, URLSessionDataDelegate {
    |       `- warning: non-final class 'EventSource' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 18 |     private let url: URL
 19 |     private let headers: [String: String]
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:20:17: warning: stored property 'parser' of 'Sendable'-conforming class 'EventSource' has non-sendable type 'EventParser'; this is an error in the Swift 6 language mode
 18 |     private let url: URL
 19 |     private let headers: [String: String]
 20 |     private let parser: EventParser
    |                 `- warning: stored property 'parser' of 'Sendable'-conforming class 'EventSource' has non-sendable type 'EventParser'; this is an error in the Swift 6 language mode
 21 |     private var openHandler: (() -> Void)?
 22 |     private var completeHandler: ((Int?, Error?) -> Void)?
    :
114 | // The parser supports both "\n" and "\r\n" as field separator. "\r" is rarely used practically thus not supported for simplicity.
115 | // Comments and fields other than "data" are silently dropped.
116 | class EventParser {
    |       `- note: class 'EventParser' does not conform to the 'Sendable' protocol
117 |     static let cr = Character("\r").asciiValue!
118 |     static let ln = Character("\n").asciiValue!
/host/spi-builder-workspace/Sources/SignalRClient/Transport/EventSource.swift:21:17: warning: stored property 'openHandler' of 'Sendable'-conforming class 'EventSource' is mutable; this is an error in the Swift 6 language mode
 19 |     private let headers: [String: String]
 20 |     private let parser: EventParser
 21 |     private var openHandler: (() -> Void)?
    |                 `- warning: stored property 'openHandler' of 'Sendable'-conforming class 'EventSource' is mutable; this is an error in the Swift 6 language mode
 22 |     private var completeHandler: ((Int?, Error?) -> Void)?
 23 |     private var messageHandler: ((String) -> Void)?
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:649:42: warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
647 |
648 |             if (!(await connection.inherentKeepAlive)) {
649 |                 await keepAliveScheduler.start {
    |                                          |- warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending 'self'-isolated value of non-Sendable type '() async -> Void' to actor-isolated instance method 'start(sendAction:)' risks causing races in between 'self'-isolated and actor-isolated uses
650 |                     do {
651 |                         let state = self.state()
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:660:42: warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
658 |                 }
659 |             }
660 |             await serverTimeoutScheduler.start {
    |                                          |- warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending 'self'-isolated value of non-Sendable type '() async -> Void' to actor-isolated instance method 'start(sendAction:)' risks causing races in between 'self'-isolated and actor-isolated uses
661 |                 self.logger.log(level: .warning, message: "Server timeout")
662 |                 await self.connection.stop(error: SignalRError.serverTimeout(self.serverTimeout))
[32/40] Compiling SignalRClient HttpConnection.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:87:16: warning: non-sendable type '[ConnectionFeature : Any]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'features'; this is an error in the Swift 6 language mode
 85 |     private var inherentKeepAlivePrivate: Bool = false
 86 |
 87 |     public var features: [ConnectionFeature: Any] = [:]
    |                `- warning: non-sendable type '[ConnectionFeature : Any]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'features'; this is an error in the Swift 6 language mode
 88 |     public var baseUrl: String
 89 |     public var connectionId: String?
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:551:17: warning: non-sendable parameter type 'Any' cannot be sent from caller of protocol requirement 'setFeature(feature:value:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
549 |     }
550 |
551 |     public func setFeature(feature: ConnectionFeature, value: Any) async {
    |                 `- warning: non-sendable parameter type 'Any' cannot be sent from caller of protocol requirement 'setFeature(feature:value:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
552 |         features[feature] = value
553 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:288:60: warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from actor-isolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
286 |             let request = HttpRequest(method: .POST, url: negotiateUrl, options: options)
287 |
288 |             let (message, response) = try await httpClient.send(request: request)
    |                                                            `- warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from actor-isolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
289 |
290 |             if response.statusCode != 200 {
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:47:15: note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:366:32: warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
364 |                 var callStop = false;
365 |                 guard let self = self else { return }
366 |                 if await (self.features[ConnectionFeature.Reconnect] as? Bool) == true {
    |                                `- warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
367 |                     do {
368 |                         if let disconnectedHandler = await self.features[ConnectionFeature.Disconnected] as? () async -> Void {
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:368:65: warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
366 |                 if await (self.features[ConnectionFeature.Reconnect] as? Bool) == true {
367 |                     do {
368 |                         if let disconnectedHandler = await self.features[ConnectionFeature.Disconnected] as? () async -> Void {
    |                                                                 `- warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
369 |                             Task {
370 |                                 await disconnectedHandler();
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:374:59: warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
372 |                         }
373 |                         try await self.transport?.connect(url: url, transferFormat: transferFormat);
374 |                         if let resendHandler = await self.features[ConnectionFeature.Resend] as? () -> Void {
    |                                                           `- warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
375 |                             resendHandler();
376 |                         }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:181:27: warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'task()'; this is an error in the Swift 6 language mode
179 |         try await sendWithProtocol(invocationMessage)
180 |         launchStreams(streamIds: streamIds, clientStreams: streamArguments)
181 |         _ = try await tcs.task()
    |                           `- warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'task()'; this is an error in the Swift 6 language mode
182 |     }
183 |
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:200:43: warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'task()'; this is an error in the Swift 6 language mode
198 |         }
199 |
200 |         if let returnVal = (try await tcs.task()) as? TReturn {
    |                                           `- warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'task()'; this is an error in the Swift 6 language mode
201 |             return returnVal
202 |         } else {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:210:62: warning: non-sendable result type '(String, AsyncThrowingStream<Any, any Error>)' cannot be sent from actor-isolated context in call to instance method 'createStream()'; this is an error in the Swift 6 language mode
208 |         let (nonstreamArguments, streamArguments) = splitStreamArguments(arguments: arguments)
209 |         let streamIds = await invocationHandler.createClientStreamIds(count: streamArguments.count)
210 |         let (invocationId, stream) = await invocationHandler.createStream()
    |                                                              `- warning: non-sendable result type '(String, AsyncThrowingStream<Any, any Error>)' cannot be sent from actor-isolated context in call to instance method 'createStream()'; this is an error in the Swift 6 language mode
211 |         invocationBinder.registerReturnValueType(invocationId: invocationId, types: Element.self)
212 |         let StreamInvocationMessage = StreamInvocationMessage(invocationId: invocationId, target: method, arguments: AnyEncodableArray(nonstreamArguments), streamIds: streamIds, headers: nil)
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:541:50: warning: expression implicitly coerced from '[Any?]' to '[Any]'
539 |         let expectResponse = message.invocationId != nil
540 |         if (expectResponse) {
541 |             var result: Any? = try await handler(message.arguments.value ?? [])
    |                                                  |                       `- note: explicitly cast to '[Any]' with 'as [Any]' to silence this warning
    |                                                  `- warning: expression implicitly coerced from '[Any?]' to '[Any]'
542 |             if (result is Void) {
543 |                 // Void is not encodeable
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:549:35: warning: expression implicitly coerced from '[Any?]' to '[Any]'
547 |             try await sendWithProtocol(completionMessage)
548 |         } else {
549 |             _ = try await handler(message.arguments.value ?? [])
    |                                   |                       `- note: explicitly cast to '[Any]' with 'as [Any]' to silence this warning
    |                                   `- warning: expression implicitly coerced from '[Any?]' to '[Any]'
550 |         }
551 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:541:42: warning: non-sendable result type 'Any' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
539 |         let expectResponse = message.invocationId != nil
540 |         if (expectResponse) {
541 |             var result: Any? = try await handler(message.arguments.value ?? [])
    |                                          `- warning: non-sendable result type 'Any' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
542 |             if (result is Void) {
543 |                 // Void is not encodeable
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:549:27: warning: non-sendable result type 'Any' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
547 |             try await sendWithProtocol(completionMessage)
548 |         } else {
549 |             _ = try await handler(message.arguments.value ?? [])
    |                           `- warning: non-sendable result type 'Any' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
550 |         }
551 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:588:31: warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
586 |         // After connection open, perform handshake
587 |         var version = hubProtocol.version
588 |         if !(await connection.features[ConnectionFeature.Reconnect] as? Bool ?? false) {
    |                               `- warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
589 |             // Stateful Reconnect starts with HubProtocol version 2, newer clients connecting to older servers will fail to connect due to
590 |             // the handshake only supporting version 1, so we will try to send version 1 during the handshake to keep old servers working.
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:628:63: warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
626 |             }
627 |
628 |             let useStatefulReconnect = await (self.connection.features[ConnectionFeature.Reconnect] as? Bool) == true
    |                                                               `- warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
629 |             if useStatefulReconnect {
630 |                 self.messageBuffer = MessageBuffer(
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:497:20: warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
495 |         case .serverSentEvents:
496 |             let accessToken = await self.httpClient.accessToken
497 |             return ServerSentEventTransport(httpClient: self.httpClient, accessToken: accessToken, logger: logger, options: options)
    |                    |- warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
    |                    `- note: sending 'self'-isolated value of non-Sendable type 'HttpConnectionOptions' to actor-isolated callee risks causing races in between 'self'-isolated and actor-isolated uses
498 |         case .longPolling:
499 |             return LongPollingTransport(httpClient: httpClient, logger: logger, options: options)
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:499:20: warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
497 |             return ServerSentEventTransport(httpClient: self.httpClient, accessToken: accessToken, logger: logger, options: options)
498 |         case .longPolling:
499 |             return LongPollingTransport(httpClient: httpClient, logger: logger, options: options)
    |                    |- warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
    |                    `- note: sending 'self'-isolated value of non-Sendable type 'HttpConnectionOptions' to actor-isolated callee risks causing races in between 'self'-isolated and actor-isolated uses
500 |         default:
501 |             throw SignalRError.unsupportedTransport("Unkonwn transport type '\(transport)'.")
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:220:42: warning: sending 'self.accessTokenFactory.some' risks causing data races; this is an error in the Swift 6 language mode
218 |                         // the returned access token
219 |                         accessTokenFactory = { return accessToken }
220 |                         await httpClient.setAccessTokenFactory(factory: accessTokenFactory)
    |                                          |- warning: sending 'self.accessTokenFactory.some' risks causing data races; this is an error in the Swift 6 language mode
    |                                          |- note: sending 'self.accessTokenFactory.some' to actor-isolated instance method 'setAccessTokenFactory(factory:)' risks causing data races between actor-isolated and local actor-isolated uses
    |                                          `- note: access can happen concurrently
221 |                     }
222 |                     redirects += 1
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:369:34: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
367 |                     do {
368 |                         if let disconnectedHandler = await self.features[ConnectionFeature.Disconnected] as? () async -> Void {
369 |                             Task {
    |                                  `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
370 |                                 await disconnectedHandler();
    |                                       `- note: closure captures 'disconnectedHandler' which is accessible to 'self'-isolated code
371 |                             }
372 |                         }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:649:42: warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
647 |
648 |             if (!(await connection.inherentKeepAlive)) {
649 |                 await keepAliveScheduler.start {
    |                                          |- warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending 'self'-isolated value of non-Sendable type '() async -> Void' to actor-isolated instance method 'start(sendAction:)' risks causing races in between 'self'-isolated and actor-isolated uses
650 |                     do {
651 |                         let state = self.state()
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:660:42: warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
658 |                 }
659 |             }
660 |             await serverTimeoutScheduler.start {
    |                                          |- warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending 'self'-isolated value of non-Sendable type '() async -> Void' to actor-isolated instance method 'start(sendAction:)' risks causing races in between 'self'-isolated and actor-isolated uses
661 |                 self.logger.log(level: .warning, message: "Server timeout")
662 |                 await self.connection.stop(error: SignalRError.serverTimeout(self.serverTimeout))
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:688:43: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
686 |     private func sendWithProtocol(_ message: HubMessage) async throws {
687 |         if self.messageBuffer != nil {
688 |             try await self.messageBuffer?.send(message: message)
    |                                           |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                           `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'send(message:)' risks causing data races between actor-isolated and 'self'-isolated uses
689 |         }
690 |         else {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:541:42: warning: sending value of non-Sendable type '[Any?]' risks causing data races; this is an error in the Swift 6 language mode
539 |         let expectResponse = message.invocationId != nil
540 |         if (expectResponse) {
541 |             var result: Any? = try await handler(message.arguments.value ?? [])
    |                                          |- warning: sending value of non-Sendable type '[Any?]' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending 'self'-isolated value of non-Sendable type '[Any?]' to nonisolated callee risks causing races in between 'self'-isolated and nonisolated uses
542 |             if (result is Void) {
543 |                 // Void is not encodeable
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:549:27: warning: sending value of non-Sendable type '[Any?]' risks causing data races; this is an error in the Swift 6 language mode
547 |             try await sendWithProtocol(completionMessage)
548 |         } else {
549 |             _ = try await handler(message.arguments.value ?? [])
    |                           |- warning: sending value of non-Sendable type '[Any?]' risks causing data races; this is an error in the Swift 6 language mode
    |                           `- note: sending 'self'-isolated value of non-Sendable type '[Any?]' to nonisolated callee risks causing races in between 'self'-isolated and nonisolated uses
550 |         }
551 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:853:34: warning: sending 'message.item.value.some' risks causing data races; this is an error in the Swift 6 language mode
851 |             if let invocation = invocations[message.invocationId!] {
852 |                 if case .Stream(let continuation) = invocation {
853 |                     continuation.yield(message.item.value!)
    |                                  |- warning: sending 'message.item.value.some' risks causing data races; this is an error in the Swift 6 language mode
    |                                  `- note: 'self'-isolated 'message.item.value.some' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
854 |                 }
855 |             }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:835:39: warning: sending value of non-Sendable type 'Result<Any?, any Error>' risks causing data races; this is an error in the Swift 6 language mode
833 |                         _ = await tcs.trySetResult(.failure(SignalRError.invocationError(message.error!)))
834 |                     } else {
835 |                         _ = await tcs.trySetResult(.success(message.result.value))
    |                                       |- warning: sending value of non-Sendable type 'Result<Any?, any Error>' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending 'self'-isolated value of non-Sendable type 'Result<Any?, any Error>' to actor-isolated instance method 'trySetResult' risks causing races in between 'self'-isolated and actor-isolated uses
836 |                     }
837 |                 } else if case .Stream(let continuation) = invocation {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:842:42: warning: sending 'message.result.value.some' risks causing data races; this is an error in the Swift 6 language mode
840 |                     } else {
841 |                         if (message.result.value != nil) {
842 |                             continuation.yield(message.result.value!)
    |                                          |- warning: sending 'message.result.value.some' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: 'self'-isolated 'message.result.value.some' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
843 |                         }
844 |                         continuation.finish()
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:484:37: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
482 |         case let message as StreamItemMessage:
483 |             logger.log(level: .debug, message: "Stream item message received for invocation: \(message.invocationId!)")
484 |             await invocationHandler.setStreamItem(message: message)
    |                                     |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'setStreamItem(message:)' risks causing data races between actor-isolated and 'self'-isolated uses
485 |             break
486 |         case let message as CompletionMessage:
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:488:37: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
486 |         case let message as CompletionMessage:
487 |             logger.log(level: .debug, message: "Completion message received for invocation: \(message.invocationId!), error: \(message.error ?? "nil"), result: \(message.result.value ?? "nil")")
488 |             await invocationHandler.setResult(message: message)
    |                                     |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'setResult(message:)' risks causing data races between actor-isolated and 'self'-isolated uses
489 |             invocationBinder.removeReturnValueType(invocationId: message.invocationId!)
490 |             break
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:518:37: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
516 |         case let message as SequenceMessage:
517 |             if let messageBuffer = self.messageBuffer {
518 |                 await messageBuffer.resetSequenceMessage(message: message)
    |                                     |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'resetSequenceMessage(message:)' risks causing data races between actor-isolated and 'self'-isolated uses
519 |             } else {
520 |                 logger.log(level: .warning, message: "Sequence message received but no message buffer is available.")
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:457:50: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
455 |             for message in hubMessage {
456 |                 if let messageBuffer = self.messageBuffer {
457 |                     if !(try await messageBuffer.shouldProcessMessage(message)) {
    |                                                  |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                                  |- note: sending 'message' to actor-isolated instance method 'shouldProcessMessage' risks causing data races between actor-isolated and local actor-isolated uses
    |                                                  `- note: access can happen concurrently
458 |                         // Don't process the message, we are either waiting for a SequenceMessage or received a duplicate message
459 |                         continue
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:457:50: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
455 |             for message in hubMessage {
456 |                 if let messageBuffer = self.messageBuffer {
457 |                     if !(try await messageBuffer.shouldProcessMessage(message)) {
    |                                                  |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                                  `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'shouldProcessMessage' risks causing data races between actor-isolated and 'self'-isolated uses
458 |                         // Don't process the message, we are either waiting for a SequenceMessage or received a duplicate message
459 |                         continue
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:224:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
222 |
223 |         let typedStream = AsyncThrowingStream<Element, Error> { continuation in
224 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
225 |                 do {
226 |                     for try await item in stream {
    |                                           `- note: closure captures 'stream' which is accessible to code in the current task
227 |                         if let returnVal = item as? Element {
228 |                             continuation.yield(returnVal)
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:228:42: warning: sending 'returnVal' risks causing data races; this is an error in the Swift 6 language mode
226 |                     for try await item in stream {
227 |                         if let returnVal = item as? Element {
228 |                             continuation.yield(returnVal)
    |                                          |- warning: sending 'returnVal' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: task-isolated 'returnVal' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
229 |                         } else {
230 |                             throw SignalRError.invalidOperation("Cannot convert the result of the invocation to the specified type.")
/host/spi-builder-workspace/Sources/SignalRClient/HubConnectionBuilder.swift:104:40: warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
102 |         }
103 |
104 |         let connection = connection ?? HttpConnection(url: url, options: httpConnectionOptions)
    |                                        |- warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: sending task-isolated value of non-Sendable type 'HttpConnectionOptions' to actor-isolated callee risks causing races in between task-isolated and actor-isolated uses
105 |         let logger = Logger(logLevel: logLevel, logHandler: logHandler ?? DefaultLogHandler())
106 |         let hubProtocol = hubProtocol ?? JsonHubProtocol()
[33/40] Compiling SignalRClient HubConnection+On.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:87:16: warning: non-sendable type '[ConnectionFeature : Any]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'features'; this is an error in the Swift 6 language mode
 85 |     private var inherentKeepAlivePrivate: Bool = false
 86 |
 87 |     public var features: [ConnectionFeature: Any] = [:]
    |                `- warning: non-sendable type '[ConnectionFeature : Any]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'features'; this is an error in the Swift 6 language mode
 88 |     public var baseUrl: String
 89 |     public var connectionId: String?
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:551:17: warning: non-sendable parameter type 'Any' cannot be sent from caller of protocol requirement 'setFeature(feature:value:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
549 |     }
550 |
551 |     public func setFeature(feature: ConnectionFeature, value: Any) async {
    |                 `- warning: non-sendable parameter type 'Any' cannot be sent from caller of protocol requirement 'setFeature(feature:value:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
552 |         features[feature] = value
553 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:288:60: warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from actor-isolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
286 |             let request = HttpRequest(method: .POST, url: negotiateUrl, options: options)
287 |
288 |             let (message, response) = try await httpClient.send(request: request)
    |                                                            `- warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from actor-isolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
289 |
290 |             if response.statusCode != 200 {
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:47:15: note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:366:32: warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
364 |                 var callStop = false;
365 |                 guard let self = self else { return }
366 |                 if await (self.features[ConnectionFeature.Reconnect] as? Bool) == true {
    |                                `- warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
367 |                     do {
368 |                         if let disconnectedHandler = await self.features[ConnectionFeature.Disconnected] as? () async -> Void {
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:368:65: warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
366 |                 if await (self.features[ConnectionFeature.Reconnect] as? Bool) == true {
367 |                     do {
368 |                         if let disconnectedHandler = await self.features[ConnectionFeature.Disconnected] as? () async -> Void {
    |                                                                 `- warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
369 |                             Task {
370 |                                 await disconnectedHandler();
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:374:59: warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
372 |                         }
373 |                         try await self.transport?.connect(url: url, transferFormat: transferFormat);
374 |                         if let resendHandler = await self.features[ConnectionFeature.Resend] as? () -> Void {
    |                                                           `- warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
375 |                             resendHandler();
376 |                         }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:181:27: warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'task()'; this is an error in the Swift 6 language mode
179 |         try await sendWithProtocol(invocationMessage)
180 |         launchStreams(streamIds: streamIds, clientStreams: streamArguments)
181 |         _ = try await tcs.task()
    |                           `- warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'task()'; this is an error in the Swift 6 language mode
182 |     }
183 |
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:200:43: warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'task()'; this is an error in the Swift 6 language mode
198 |         }
199 |
200 |         if let returnVal = (try await tcs.task()) as? TReturn {
    |                                           `- warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'task()'; this is an error in the Swift 6 language mode
201 |             return returnVal
202 |         } else {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:210:62: warning: non-sendable result type '(String, AsyncThrowingStream<Any, any Error>)' cannot be sent from actor-isolated context in call to instance method 'createStream()'; this is an error in the Swift 6 language mode
208 |         let (nonstreamArguments, streamArguments) = splitStreamArguments(arguments: arguments)
209 |         let streamIds = await invocationHandler.createClientStreamIds(count: streamArguments.count)
210 |         let (invocationId, stream) = await invocationHandler.createStream()
    |                                                              `- warning: non-sendable result type '(String, AsyncThrowingStream<Any, any Error>)' cannot be sent from actor-isolated context in call to instance method 'createStream()'; this is an error in the Swift 6 language mode
211 |         invocationBinder.registerReturnValueType(invocationId: invocationId, types: Element.self)
212 |         let StreamInvocationMessage = StreamInvocationMessage(invocationId: invocationId, target: method, arguments: AnyEncodableArray(nonstreamArguments), streamIds: streamIds, headers: nil)
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:541:50: warning: expression implicitly coerced from '[Any?]' to '[Any]'
539 |         let expectResponse = message.invocationId != nil
540 |         if (expectResponse) {
541 |             var result: Any? = try await handler(message.arguments.value ?? [])
    |                                                  |                       `- note: explicitly cast to '[Any]' with 'as [Any]' to silence this warning
    |                                                  `- warning: expression implicitly coerced from '[Any?]' to '[Any]'
542 |             if (result is Void) {
543 |                 // Void is not encodeable
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:549:35: warning: expression implicitly coerced from '[Any?]' to '[Any]'
547 |             try await sendWithProtocol(completionMessage)
548 |         } else {
549 |             _ = try await handler(message.arguments.value ?? [])
    |                                   |                       `- note: explicitly cast to '[Any]' with 'as [Any]' to silence this warning
    |                                   `- warning: expression implicitly coerced from '[Any?]' to '[Any]'
550 |         }
551 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:541:42: warning: non-sendable result type 'Any' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
539 |         let expectResponse = message.invocationId != nil
540 |         if (expectResponse) {
541 |             var result: Any? = try await handler(message.arguments.value ?? [])
    |                                          `- warning: non-sendable result type 'Any' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
542 |             if (result is Void) {
543 |                 // Void is not encodeable
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:549:27: warning: non-sendable result type 'Any' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
547 |             try await sendWithProtocol(completionMessage)
548 |         } else {
549 |             _ = try await handler(message.arguments.value ?? [])
    |                           `- warning: non-sendable result type 'Any' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
550 |         }
551 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:588:31: warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
586 |         // After connection open, perform handshake
587 |         var version = hubProtocol.version
588 |         if !(await connection.features[ConnectionFeature.Reconnect] as? Bool ?? false) {
    |                               `- warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
589 |             // Stateful Reconnect starts with HubProtocol version 2, newer clients connecting to older servers will fail to connect due to
590 |             // the handshake only supporting version 1, so we will try to send version 1 during the handshake to keep old servers working.
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:628:63: warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
626 |             }
627 |
628 |             let useStatefulReconnect = await (self.connection.features[ConnectionFeature.Reconnect] as? Bool) == true
    |                                                               `- warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
629 |             if useStatefulReconnect {
630 |                 self.messageBuffer = MessageBuffer(
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:497:20: warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
495 |         case .serverSentEvents:
496 |             let accessToken = await self.httpClient.accessToken
497 |             return ServerSentEventTransport(httpClient: self.httpClient, accessToken: accessToken, logger: logger, options: options)
    |                    |- warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
    |                    `- note: sending 'self'-isolated value of non-Sendable type 'HttpConnectionOptions' to actor-isolated callee risks causing races in between 'self'-isolated and actor-isolated uses
498 |         case .longPolling:
499 |             return LongPollingTransport(httpClient: httpClient, logger: logger, options: options)
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:499:20: warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
497 |             return ServerSentEventTransport(httpClient: self.httpClient, accessToken: accessToken, logger: logger, options: options)
498 |         case .longPolling:
499 |             return LongPollingTransport(httpClient: httpClient, logger: logger, options: options)
    |                    |- warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
    |                    `- note: sending 'self'-isolated value of non-Sendable type 'HttpConnectionOptions' to actor-isolated callee risks causing races in between 'self'-isolated and actor-isolated uses
500 |         default:
501 |             throw SignalRError.unsupportedTransport("Unkonwn transport type '\(transport)'.")
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:220:42: warning: sending 'self.accessTokenFactory.some' risks causing data races; this is an error in the Swift 6 language mode
218 |                         // the returned access token
219 |                         accessTokenFactory = { return accessToken }
220 |                         await httpClient.setAccessTokenFactory(factory: accessTokenFactory)
    |                                          |- warning: sending 'self.accessTokenFactory.some' risks causing data races; this is an error in the Swift 6 language mode
    |                                          |- note: sending 'self.accessTokenFactory.some' to actor-isolated instance method 'setAccessTokenFactory(factory:)' risks causing data races between actor-isolated and local actor-isolated uses
    |                                          `- note: access can happen concurrently
221 |                     }
222 |                     redirects += 1
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:369:34: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
367 |                     do {
368 |                         if let disconnectedHandler = await self.features[ConnectionFeature.Disconnected] as? () async -> Void {
369 |                             Task {
    |                                  `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
370 |                                 await disconnectedHandler();
    |                                       `- note: closure captures 'disconnectedHandler' which is accessible to 'self'-isolated code
371 |                             }
372 |                         }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:649:42: warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
647 |
648 |             if (!(await connection.inherentKeepAlive)) {
649 |                 await keepAliveScheduler.start {
    |                                          |- warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending 'self'-isolated value of non-Sendable type '() async -> Void' to actor-isolated instance method 'start(sendAction:)' risks causing races in between 'self'-isolated and actor-isolated uses
650 |                     do {
651 |                         let state = self.state()
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:660:42: warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
658 |                 }
659 |             }
660 |             await serverTimeoutScheduler.start {
    |                                          |- warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending 'self'-isolated value of non-Sendable type '() async -> Void' to actor-isolated instance method 'start(sendAction:)' risks causing races in between 'self'-isolated and actor-isolated uses
661 |                 self.logger.log(level: .warning, message: "Server timeout")
662 |                 await self.connection.stop(error: SignalRError.serverTimeout(self.serverTimeout))
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:688:43: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
686 |     private func sendWithProtocol(_ message: HubMessage) async throws {
687 |         if self.messageBuffer != nil {
688 |             try await self.messageBuffer?.send(message: message)
    |                                           |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                           `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'send(message:)' risks causing data races between actor-isolated and 'self'-isolated uses
689 |         }
690 |         else {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:541:42: warning: sending value of non-Sendable type '[Any?]' risks causing data races; this is an error in the Swift 6 language mode
539 |         let expectResponse = message.invocationId != nil
540 |         if (expectResponse) {
541 |             var result: Any? = try await handler(message.arguments.value ?? [])
    |                                          |- warning: sending value of non-Sendable type '[Any?]' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending 'self'-isolated value of non-Sendable type '[Any?]' to nonisolated callee risks causing races in between 'self'-isolated and nonisolated uses
542 |             if (result is Void) {
543 |                 // Void is not encodeable
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:549:27: warning: sending value of non-Sendable type '[Any?]' risks causing data races; this is an error in the Swift 6 language mode
547 |             try await sendWithProtocol(completionMessage)
548 |         } else {
549 |             _ = try await handler(message.arguments.value ?? [])
    |                           |- warning: sending value of non-Sendable type '[Any?]' risks causing data races; this is an error in the Swift 6 language mode
    |                           `- note: sending 'self'-isolated value of non-Sendable type '[Any?]' to nonisolated callee risks causing races in between 'self'-isolated and nonisolated uses
550 |         }
551 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:853:34: warning: sending 'message.item.value.some' risks causing data races; this is an error in the Swift 6 language mode
851 |             if let invocation = invocations[message.invocationId!] {
852 |                 if case .Stream(let continuation) = invocation {
853 |                     continuation.yield(message.item.value!)
    |                                  |- warning: sending 'message.item.value.some' risks causing data races; this is an error in the Swift 6 language mode
    |                                  `- note: 'self'-isolated 'message.item.value.some' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
854 |                 }
855 |             }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:835:39: warning: sending value of non-Sendable type 'Result<Any?, any Error>' risks causing data races; this is an error in the Swift 6 language mode
833 |                         _ = await tcs.trySetResult(.failure(SignalRError.invocationError(message.error!)))
834 |                     } else {
835 |                         _ = await tcs.trySetResult(.success(message.result.value))
    |                                       |- warning: sending value of non-Sendable type 'Result<Any?, any Error>' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending 'self'-isolated value of non-Sendable type 'Result<Any?, any Error>' to actor-isolated instance method 'trySetResult' risks causing races in between 'self'-isolated and actor-isolated uses
836 |                     }
837 |                 } else if case .Stream(let continuation) = invocation {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:842:42: warning: sending 'message.result.value.some' risks causing data races; this is an error in the Swift 6 language mode
840 |                     } else {
841 |                         if (message.result.value != nil) {
842 |                             continuation.yield(message.result.value!)
    |                                          |- warning: sending 'message.result.value.some' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: 'self'-isolated 'message.result.value.some' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
843 |                         }
844 |                         continuation.finish()
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:484:37: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
482 |         case let message as StreamItemMessage:
483 |             logger.log(level: .debug, message: "Stream item message received for invocation: \(message.invocationId!)")
484 |             await invocationHandler.setStreamItem(message: message)
    |                                     |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'setStreamItem(message:)' risks causing data races between actor-isolated and 'self'-isolated uses
485 |             break
486 |         case let message as CompletionMessage:
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:488:37: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
486 |         case let message as CompletionMessage:
487 |             logger.log(level: .debug, message: "Completion message received for invocation: \(message.invocationId!), error: \(message.error ?? "nil"), result: \(message.result.value ?? "nil")")
488 |             await invocationHandler.setResult(message: message)
    |                                     |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'setResult(message:)' risks causing data races between actor-isolated and 'self'-isolated uses
489 |             invocationBinder.removeReturnValueType(invocationId: message.invocationId!)
490 |             break
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:518:37: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
516 |         case let message as SequenceMessage:
517 |             if let messageBuffer = self.messageBuffer {
518 |                 await messageBuffer.resetSequenceMessage(message: message)
    |                                     |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'resetSequenceMessage(message:)' risks causing data races between actor-isolated and 'self'-isolated uses
519 |             } else {
520 |                 logger.log(level: .warning, message: "Sequence message received but no message buffer is available.")
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:457:50: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
455 |             for message in hubMessage {
456 |                 if let messageBuffer = self.messageBuffer {
457 |                     if !(try await messageBuffer.shouldProcessMessage(message)) {
    |                                                  |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                                  |- note: sending 'message' to actor-isolated instance method 'shouldProcessMessage' risks causing data races between actor-isolated and local actor-isolated uses
    |                                                  `- note: access can happen concurrently
458 |                         // Don't process the message, we are either waiting for a SequenceMessage or received a duplicate message
459 |                         continue
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:457:50: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
455 |             for message in hubMessage {
456 |                 if let messageBuffer = self.messageBuffer {
457 |                     if !(try await messageBuffer.shouldProcessMessage(message)) {
    |                                                  |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                                  `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'shouldProcessMessage' risks causing data races between actor-isolated and 'self'-isolated uses
458 |                         // Don't process the message, we are either waiting for a SequenceMessage or received a duplicate message
459 |                         continue
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:224:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
222 |
223 |         let typedStream = AsyncThrowingStream<Element, Error> { continuation in
224 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
225 |                 do {
226 |                     for try await item in stream {
    |                                           `- note: closure captures 'stream' which is accessible to code in the current task
227 |                         if let returnVal = item as? Element {
228 |                             continuation.yield(returnVal)
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:228:42: warning: sending 'returnVal' risks causing data races; this is an error in the Swift 6 language mode
226 |                     for try await item in stream {
227 |                         if let returnVal = item as? Element {
228 |                             continuation.yield(returnVal)
    |                                          |- warning: sending 'returnVal' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: task-isolated 'returnVal' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
229 |                         } else {
230 |                             throw SignalRError.invalidOperation("Cannot convert the result of the invocation to the specified type.")
/host/spi-builder-workspace/Sources/SignalRClient/HubConnectionBuilder.swift:104:40: warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
102 |         }
103 |
104 |         let connection = connection ?? HttpConnection(url: url, options: httpConnectionOptions)
    |                                        |- warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: sending task-isolated value of non-Sendable type 'HttpConnectionOptions' to actor-isolated callee risks causing races in between task-isolated and actor-isolated uses
105 |         let logger = Logger(logLevel: logLevel, logHandler: logHandler ?? DefaultLogHandler())
106 |         let hubProtocol = hubProtocol ?? JsonHubProtocol()
[34/40] Compiling SignalRClient HubConnection+OnResult.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:87:16: warning: non-sendable type '[ConnectionFeature : Any]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'features'; this is an error in the Swift 6 language mode
 85 |     private var inherentKeepAlivePrivate: Bool = false
 86 |
 87 |     public var features: [ConnectionFeature: Any] = [:]
    |                `- warning: non-sendable type '[ConnectionFeature : Any]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'features'; this is an error in the Swift 6 language mode
 88 |     public var baseUrl: String
 89 |     public var connectionId: String?
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:551:17: warning: non-sendable parameter type 'Any' cannot be sent from caller of protocol requirement 'setFeature(feature:value:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
549 |     }
550 |
551 |     public func setFeature(feature: ConnectionFeature, value: Any) async {
    |                 `- warning: non-sendable parameter type 'Any' cannot be sent from caller of protocol requirement 'setFeature(feature:value:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
552 |         features[feature] = value
553 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:288:60: warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from actor-isolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
286 |             let request = HttpRequest(method: .POST, url: negotiateUrl, options: options)
287 |
288 |             let (message, response) = try await httpClient.send(request: request)
    |                                                            `- warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from actor-isolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
289 |
290 |             if response.statusCode != 200 {
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:47:15: note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:366:32: warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
364 |                 var callStop = false;
365 |                 guard let self = self else { return }
366 |                 if await (self.features[ConnectionFeature.Reconnect] as? Bool) == true {
    |                                `- warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
367 |                     do {
368 |                         if let disconnectedHandler = await self.features[ConnectionFeature.Disconnected] as? () async -> Void {
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:368:65: warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
366 |                 if await (self.features[ConnectionFeature.Reconnect] as? Bool) == true {
367 |                     do {
368 |                         if let disconnectedHandler = await self.features[ConnectionFeature.Disconnected] as? () async -> Void {
    |                                                                 `- warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
369 |                             Task {
370 |                                 await disconnectedHandler();
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:374:59: warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
372 |                         }
373 |                         try await self.transport?.connect(url: url, transferFormat: transferFormat);
374 |                         if let resendHandler = await self.features[ConnectionFeature.Resend] as? () -> Void {
    |                                                           `- warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
375 |                             resendHandler();
376 |                         }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:181:27: warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'task()'; this is an error in the Swift 6 language mode
179 |         try await sendWithProtocol(invocationMessage)
180 |         launchStreams(streamIds: streamIds, clientStreams: streamArguments)
181 |         _ = try await tcs.task()
    |                           `- warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'task()'; this is an error in the Swift 6 language mode
182 |     }
183 |
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:200:43: warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'task()'; this is an error in the Swift 6 language mode
198 |         }
199 |
200 |         if let returnVal = (try await tcs.task()) as? TReturn {
    |                                           `- warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'task()'; this is an error in the Swift 6 language mode
201 |             return returnVal
202 |         } else {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:210:62: warning: non-sendable result type '(String, AsyncThrowingStream<Any, any Error>)' cannot be sent from actor-isolated context in call to instance method 'createStream()'; this is an error in the Swift 6 language mode
208 |         let (nonstreamArguments, streamArguments) = splitStreamArguments(arguments: arguments)
209 |         let streamIds = await invocationHandler.createClientStreamIds(count: streamArguments.count)
210 |         let (invocationId, stream) = await invocationHandler.createStream()
    |                                                              `- warning: non-sendable result type '(String, AsyncThrowingStream<Any, any Error>)' cannot be sent from actor-isolated context in call to instance method 'createStream()'; this is an error in the Swift 6 language mode
211 |         invocationBinder.registerReturnValueType(invocationId: invocationId, types: Element.self)
212 |         let StreamInvocationMessage = StreamInvocationMessage(invocationId: invocationId, target: method, arguments: AnyEncodableArray(nonstreamArguments), streamIds: streamIds, headers: nil)
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:541:50: warning: expression implicitly coerced from '[Any?]' to '[Any]'
539 |         let expectResponse = message.invocationId != nil
540 |         if (expectResponse) {
541 |             var result: Any? = try await handler(message.arguments.value ?? [])
    |                                                  |                       `- note: explicitly cast to '[Any]' with 'as [Any]' to silence this warning
    |                                                  `- warning: expression implicitly coerced from '[Any?]' to '[Any]'
542 |             if (result is Void) {
543 |                 // Void is not encodeable
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:549:35: warning: expression implicitly coerced from '[Any?]' to '[Any]'
547 |             try await sendWithProtocol(completionMessage)
548 |         } else {
549 |             _ = try await handler(message.arguments.value ?? [])
    |                                   |                       `- note: explicitly cast to '[Any]' with 'as [Any]' to silence this warning
    |                                   `- warning: expression implicitly coerced from '[Any?]' to '[Any]'
550 |         }
551 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:541:42: warning: non-sendable result type 'Any' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
539 |         let expectResponse = message.invocationId != nil
540 |         if (expectResponse) {
541 |             var result: Any? = try await handler(message.arguments.value ?? [])
    |                                          `- warning: non-sendable result type 'Any' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
542 |             if (result is Void) {
543 |                 // Void is not encodeable
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:549:27: warning: non-sendable result type 'Any' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
547 |             try await sendWithProtocol(completionMessage)
548 |         } else {
549 |             _ = try await handler(message.arguments.value ?? [])
    |                           `- warning: non-sendable result type 'Any' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
550 |         }
551 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:588:31: warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
586 |         // After connection open, perform handshake
587 |         var version = hubProtocol.version
588 |         if !(await connection.features[ConnectionFeature.Reconnect] as? Bool ?? false) {
    |                               `- warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
589 |             // Stateful Reconnect starts with HubProtocol version 2, newer clients connecting to older servers will fail to connect due to
590 |             // the handshake only supporting version 1, so we will try to send version 1 during the handshake to keep old servers working.
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:628:63: warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
626 |             }
627 |
628 |             let useStatefulReconnect = await (self.connection.features[ConnectionFeature.Reconnect] as? Bool) == true
    |                                                               `- warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
629 |             if useStatefulReconnect {
630 |                 self.messageBuffer = MessageBuffer(
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:497:20: warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
495 |         case .serverSentEvents:
496 |             let accessToken = await self.httpClient.accessToken
497 |             return ServerSentEventTransport(httpClient: self.httpClient, accessToken: accessToken, logger: logger, options: options)
    |                    |- warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
    |                    `- note: sending 'self'-isolated value of non-Sendable type 'HttpConnectionOptions' to actor-isolated callee risks causing races in between 'self'-isolated and actor-isolated uses
498 |         case .longPolling:
499 |             return LongPollingTransport(httpClient: httpClient, logger: logger, options: options)
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:499:20: warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
497 |             return ServerSentEventTransport(httpClient: self.httpClient, accessToken: accessToken, logger: logger, options: options)
498 |         case .longPolling:
499 |             return LongPollingTransport(httpClient: httpClient, logger: logger, options: options)
    |                    |- warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
    |                    `- note: sending 'self'-isolated value of non-Sendable type 'HttpConnectionOptions' to actor-isolated callee risks causing races in between 'self'-isolated and actor-isolated uses
500 |         default:
501 |             throw SignalRError.unsupportedTransport("Unkonwn transport type '\(transport)'.")
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:220:42: warning: sending 'self.accessTokenFactory.some' risks causing data races; this is an error in the Swift 6 language mode
218 |                         // the returned access token
219 |                         accessTokenFactory = { return accessToken }
220 |                         await httpClient.setAccessTokenFactory(factory: accessTokenFactory)
    |                                          |- warning: sending 'self.accessTokenFactory.some' risks causing data races; this is an error in the Swift 6 language mode
    |                                          |- note: sending 'self.accessTokenFactory.some' to actor-isolated instance method 'setAccessTokenFactory(factory:)' risks causing data races between actor-isolated and local actor-isolated uses
    |                                          `- note: access can happen concurrently
221 |                     }
222 |                     redirects += 1
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:369:34: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
367 |                     do {
368 |                         if let disconnectedHandler = await self.features[ConnectionFeature.Disconnected] as? () async -> Void {
369 |                             Task {
    |                                  `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
370 |                                 await disconnectedHandler();
    |                                       `- note: closure captures 'disconnectedHandler' which is accessible to 'self'-isolated code
371 |                             }
372 |                         }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:649:42: warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
647 |
648 |             if (!(await connection.inherentKeepAlive)) {
649 |                 await keepAliveScheduler.start {
    |                                          |- warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending 'self'-isolated value of non-Sendable type '() async -> Void' to actor-isolated instance method 'start(sendAction:)' risks causing races in between 'self'-isolated and actor-isolated uses
650 |                     do {
651 |                         let state = self.state()
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:660:42: warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
658 |                 }
659 |             }
660 |             await serverTimeoutScheduler.start {
    |                                          |- warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending 'self'-isolated value of non-Sendable type '() async -> Void' to actor-isolated instance method 'start(sendAction:)' risks causing races in between 'self'-isolated and actor-isolated uses
661 |                 self.logger.log(level: .warning, message: "Server timeout")
662 |                 await self.connection.stop(error: SignalRError.serverTimeout(self.serverTimeout))
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:688:43: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
686 |     private func sendWithProtocol(_ message: HubMessage) async throws {
687 |         if self.messageBuffer != nil {
688 |             try await self.messageBuffer?.send(message: message)
    |                                           |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                           `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'send(message:)' risks causing data races between actor-isolated and 'self'-isolated uses
689 |         }
690 |         else {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:541:42: warning: sending value of non-Sendable type '[Any?]' risks causing data races; this is an error in the Swift 6 language mode
539 |         let expectResponse = message.invocationId != nil
540 |         if (expectResponse) {
541 |             var result: Any? = try await handler(message.arguments.value ?? [])
    |                                          |- warning: sending value of non-Sendable type '[Any?]' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending 'self'-isolated value of non-Sendable type '[Any?]' to nonisolated callee risks causing races in between 'self'-isolated and nonisolated uses
542 |             if (result is Void) {
543 |                 // Void is not encodeable
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:549:27: warning: sending value of non-Sendable type '[Any?]' risks causing data races; this is an error in the Swift 6 language mode
547 |             try await sendWithProtocol(completionMessage)
548 |         } else {
549 |             _ = try await handler(message.arguments.value ?? [])
    |                           |- warning: sending value of non-Sendable type '[Any?]' risks causing data races; this is an error in the Swift 6 language mode
    |                           `- note: sending 'self'-isolated value of non-Sendable type '[Any?]' to nonisolated callee risks causing races in between 'self'-isolated and nonisolated uses
550 |         }
551 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:853:34: warning: sending 'message.item.value.some' risks causing data races; this is an error in the Swift 6 language mode
851 |             if let invocation = invocations[message.invocationId!] {
852 |                 if case .Stream(let continuation) = invocation {
853 |                     continuation.yield(message.item.value!)
    |                                  |- warning: sending 'message.item.value.some' risks causing data races; this is an error in the Swift 6 language mode
    |                                  `- note: 'self'-isolated 'message.item.value.some' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
854 |                 }
855 |             }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:835:39: warning: sending value of non-Sendable type 'Result<Any?, any Error>' risks causing data races; this is an error in the Swift 6 language mode
833 |                         _ = await tcs.trySetResult(.failure(SignalRError.invocationError(message.error!)))
834 |                     } else {
835 |                         _ = await tcs.trySetResult(.success(message.result.value))
    |                                       |- warning: sending value of non-Sendable type 'Result<Any?, any Error>' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending 'self'-isolated value of non-Sendable type 'Result<Any?, any Error>' to actor-isolated instance method 'trySetResult' risks causing races in between 'self'-isolated and actor-isolated uses
836 |                     }
837 |                 } else if case .Stream(let continuation) = invocation {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:842:42: warning: sending 'message.result.value.some' risks causing data races; this is an error in the Swift 6 language mode
840 |                     } else {
841 |                         if (message.result.value != nil) {
842 |                             continuation.yield(message.result.value!)
    |                                          |- warning: sending 'message.result.value.some' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: 'self'-isolated 'message.result.value.some' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
843 |                         }
844 |                         continuation.finish()
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:484:37: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
482 |         case let message as StreamItemMessage:
483 |             logger.log(level: .debug, message: "Stream item message received for invocation: \(message.invocationId!)")
484 |             await invocationHandler.setStreamItem(message: message)
    |                                     |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'setStreamItem(message:)' risks causing data races between actor-isolated and 'self'-isolated uses
485 |             break
486 |         case let message as CompletionMessage:
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:488:37: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
486 |         case let message as CompletionMessage:
487 |             logger.log(level: .debug, message: "Completion message received for invocation: \(message.invocationId!), error: \(message.error ?? "nil"), result: \(message.result.value ?? "nil")")
488 |             await invocationHandler.setResult(message: message)
    |                                     |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'setResult(message:)' risks causing data races between actor-isolated and 'self'-isolated uses
489 |             invocationBinder.removeReturnValueType(invocationId: message.invocationId!)
490 |             break
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:518:37: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
516 |         case let message as SequenceMessage:
517 |             if let messageBuffer = self.messageBuffer {
518 |                 await messageBuffer.resetSequenceMessage(message: message)
    |                                     |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'resetSequenceMessage(message:)' risks causing data races between actor-isolated and 'self'-isolated uses
519 |             } else {
520 |                 logger.log(level: .warning, message: "Sequence message received but no message buffer is available.")
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:457:50: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
455 |             for message in hubMessage {
456 |                 if let messageBuffer = self.messageBuffer {
457 |                     if !(try await messageBuffer.shouldProcessMessage(message)) {
    |                                                  |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                                  |- note: sending 'message' to actor-isolated instance method 'shouldProcessMessage' risks causing data races between actor-isolated and local actor-isolated uses
    |                                                  `- note: access can happen concurrently
458 |                         // Don't process the message, we are either waiting for a SequenceMessage or received a duplicate message
459 |                         continue
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:457:50: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
455 |             for message in hubMessage {
456 |                 if let messageBuffer = self.messageBuffer {
457 |                     if !(try await messageBuffer.shouldProcessMessage(message)) {
    |                                                  |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                                  `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'shouldProcessMessage' risks causing data races between actor-isolated and 'self'-isolated uses
458 |                         // Don't process the message, we are either waiting for a SequenceMessage or received a duplicate message
459 |                         continue
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:224:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
222 |
223 |         let typedStream = AsyncThrowingStream<Element, Error> { continuation in
224 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
225 |                 do {
226 |                     for try await item in stream {
    |                                           `- note: closure captures 'stream' which is accessible to code in the current task
227 |                         if let returnVal = item as? Element {
228 |                             continuation.yield(returnVal)
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:228:42: warning: sending 'returnVal' risks causing data races; this is an error in the Swift 6 language mode
226 |                     for try await item in stream {
227 |                         if let returnVal = item as? Element {
228 |                             continuation.yield(returnVal)
    |                                          |- warning: sending 'returnVal' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: task-isolated 'returnVal' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
229 |                         } else {
230 |                             throw SignalRError.invalidOperation("Cannot convert the result of the invocation to the specified type.")
/host/spi-builder-workspace/Sources/SignalRClient/HubConnectionBuilder.swift:104:40: warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
102 |         }
103 |
104 |         let connection = connection ?? HttpConnection(url: url, options: httpConnectionOptions)
    |                                        |- warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: sending task-isolated value of non-Sendable type 'HttpConnectionOptions' to actor-isolated callee risks causing races in between task-isolated and actor-isolated uses
105 |         let logger = Logger(logLevel: logLevel, logHandler: logHandler ?? DefaultLogHandler())
106 |         let hubProtocol = hubProtocol ?? JsonHubProtocol()
[35/40] Compiling SignalRClient HubConnection.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:87:16: warning: non-sendable type '[ConnectionFeature : Any]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'features'; this is an error in the Swift 6 language mode
 85 |     private var inherentKeepAlivePrivate: Bool = false
 86 |
 87 |     public var features: [ConnectionFeature: Any] = [:]
    |                `- warning: non-sendable type '[ConnectionFeature : Any]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'features'; this is an error in the Swift 6 language mode
 88 |     public var baseUrl: String
 89 |     public var connectionId: String?
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:551:17: warning: non-sendable parameter type 'Any' cannot be sent from caller of protocol requirement 'setFeature(feature:value:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
549 |     }
550 |
551 |     public func setFeature(feature: ConnectionFeature, value: Any) async {
    |                 `- warning: non-sendable parameter type 'Any' cannot be sent from caller of protocol requirement 'setFeature(feature:value:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
552 |         features[feature] = value
553 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:288:60: warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from actor-isolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
286 |             let request = HttpRequest(method: .POST, url: negotiateUrl, options: options)
287 |
288 |             let (message, response) = try await httpClient.send(request: request)
    |                                                            `- warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from actor-isolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
289 |
290 |             if response.statusCode != 200 {
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:47:15: note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:366:32: warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
364 |                 var callStop = false;
365 |                 guard let self = self else { return }
366 |                 if await (self.features[ConnectionFeature.Reconnect] as? Bool) == true {
    |                                `- warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
367 |                     do {
368 |                         if let disconnectedHandler = await self.features[ConnectionFeature.Disconnected] as? () async -> Void {
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:368:65: warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
366 |                 if await (self.features[ConnectionFeature.Reconnect] as? Bool) == true {
367 |                     do {
368 |                         if let disconnectedHandler = await self.features[ConnectionFeature.Disconnected] as? () async -> Void {
    |                                                                 `- warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
369 |                             Task {
370 |                                 await disconnectedHandler();
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:374:59: warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
372 |                         }
373 |                         try await self.transport?.connect(url: url, transferFormat: transferFormat);
374 |                         if let resendHandler = await self.features[ConnectionFeature.Resend] as? () -> Void {
    |                                                           `- warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
375 |                             resendHandler();
376 |                         }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:181:27: warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'task()'; this is an error in the Swift 6 language mode
179 |         try await sendWithProtocol(invocationMessage)
180 |         launchStreams(streamIds: streamIds, clientStreams: streamArguments)
181 |         _ = try await tcs.task()
    |                           `- warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'task()'; this is an error in the Swift 6 language mode
182 |     }
183 |
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:200:43: warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'task()'; this is an error in the Swift 6 language mode
198 |         }
199 |
200 |         if let returnVal = (try await tcs.task()) as? TReturn {
    |                                           `- warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'task()'; this is an error in the Swift 6 language mode
201 |             return returnVal
202 |         } else {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:210:62: warning: non-sendable result type '(String, AsyncThrowingStream<Any, any Error>)' cannot be sent from actor-isolated context in call to instance method 'createStream()'; this is an error in the Swift 6 language mode
208 |         let (nonstreamArguments, streamArguments) = splitStreamArguments(arguments: arguments)
209 |         let streamIds = await invocationHandler.createClientStreamIds(count: streamArguments.count)
210 |         let (invocationId, stream) = await invocationHandler.createStream()
    |                                                              `- warning: non-sendable result type '(String, AsyncThrowingStream<Any, any Error>)' cannot be sent from actor-isolated context in call to instance method 'createStream()'; this is an error in the Swift 6 language mode
211 |         invocationBinder.registerReturnValueType(invocationId: invocationId, types: Element.self)
212 |         let StreamInvocationMessage = StreamInvocationMessage(invocationId: invocationId, target: method, arguments: AnyEncodableArray(nonstreamArguments), streamIds: streamIds, headers: nil)
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:541:50: warning: expression implicitly coerced from '[Any?]' to '[Any]'
539 |         let expectResponse = message.invocationId != nil
540 |         if (expectResponse) {
541 |             var result: Any? = try await handler(message.arguments.value ?? [])
    |                                                  |                       `- note: explicitly cast to '[Any]' with 'as [Any]' to silence this warning
    |                                                  `- warning: expression implicitly coerced from '[Any?]' to '[Any]'
542 |             if (result is Void) {
543 |                 // Void is not encodeable
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:549:35: warning: expression implicitly coerced from '[Any?]' to '[Any]'
547 |             try await sendWithProtocol(completionMessage)
548 |         } else {
549 |             _ = try await handler(message.arguments.value ?? [])
    |                                   |                       `- note: explicitly cast to '[Any]' with 'as [Any]' to silence this warning
    |                                   `- warning: expression implicitly coerced from '[Any?]' to '[Any]'
550 |         }
551 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:541:42: warning: non-sendable result type 'Any' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
539 |         let expectResponse = message.invocationId != nil
540 |         if (expectResponse) {
541 |             var result: Any? = try await handler(message.arguments.value ?? [])
    |                                          `- warning: non-sendable result type 'Any' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
542 |             if (result is Void) {
543 |                 // Void is not encodeable
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:549:27: warning: non-sendable result type 'Any' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
547 |             try await sendWithProtocol(completionMessage)
548 |         } else {
549 |             _ = try await handler(message.arguments.value ?? [])
    |                           `- warning: non-sendable result type 'Any' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
550 |         }
551 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:588:31: warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
586 |         // After connection open, perform handshake
587 |         var version = hubProtocol.version
588 |         if !(await connection.features[ConnectionFeature.Reconnect] as? Bool ?? false) {
    |                               `- warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
589 |             // Stateful Reconnect starts with HubProtocol version 2, newer clients connecting to older servers will fail to connect due to
590 |             // the handshake only supporting version 1, so we will try to send version 1 during the handshake to keep old servers working.
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:628:63: warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
626 |             }
627 |
628 |             let useStatefulReconnect = await (self.connection.features[ConnectionFeature.Reconnect] as? Bool) == true
    |                                                               `- warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
629 |             if useStatefulReconnect {
630 |                 self.messageBuffer = MessageBuffer(
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:497:20: warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
495 |         case .serverSentEvents:
496 |             let accessToken = await self.httpClient.accessToken
497 |             return ServerSentEventTransport(httpClient: self.httpClient, accessToken: accessToken, logger: logger, options: options)
    |                    |- warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
    |                    `- note: sending 'self'-isolated value of non-Sendable type 'HttpConnectionOptions' to actor-isolated callee risks causing races in between 'self'-isolated and actor-isolated uses
498 |         case .longPolling:
499 |             return LongPollingTransport(httpClient: httpClient, logger: logger, options: options)
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:499:20: warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
497 |             return ServerSentEventTransport(httpClient: self.httpClient, accessToken: accessToken, logger: logger, options: options)
498 |         case .longPolling:
499 |             return LongPollingTransport(httpClient: httpClient, logger: logger, options: options)
    |                    |- warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
    |                    `- note: sending 'self'-isolated value of non-Sendable type 'HttpConnectionOptions' to actor-isolated callee risks causing races in between 'self'-isolated and actor-isolated uses
500 |         default:
501 |             throw SignalRError.unsupportedTransport("Unkonwn transport type '\(transport)'.")
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:220:42: warning: sending 'self.accessTokenFactory.some' risks causing data races; this is an error in the Swift 6 language mode
218 |                         // the returned access token
219 |                         accessTokenFactory = { return accessToken }
220 |                         await httpClient.setAccessTokenFactory(factory: accessTokenFactory)
    |                                          |- warning: sending 'self.accessTokenFactory.some' risks causing data races; this is an error in the Swift 6 language mode
    |                                          |- note: sending 'self.accessTokenFactory.some' to actor-isolated instance method 'setAccessTokenFactory(factory:)' risks causing data races between actor-isolated and local actor-isolated uses
    |                                          `- note: access can happen concurrently
221 |                     }
222 |                     redirects += 1
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:369:34: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
367 |                     do {
368 |                         if let disconnectedHandler = await self.features[ConnectionFeature.Disconnected] as? () async -> Void {
369 |                             Task {
    |                                  `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
370 |                                 await disconnectedHandler();
    |                                       `- note: closure captures 'disconnectedHandler' which is accessible to 'self'-isolated code
371 |                             }
372 |                         }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:649:42: warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
647 |
648 |             if (!(await connection.inherentKeepAlive)) {
649 |                 await keepAliveScheduler.start {
    |                                          |- warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending 'self'-isolated value of non-Sendable type '() async -> Void' to actor-isolated instance method 'start(sendAction:)' risks causing races in between 'self'-isolated and actor-isolated uses
650 |                     do {
651 |                         let state = self.state()
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:660:42: warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
658 |                 }
659 |             }
660 |             await serverTimeoutScheduler.start {
    |                                          |- warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending 'self'-isolated value of non-Sendable type '() async -> Void' to actor-isolated instance method 'start(sendAction:)' risks causing races in between 'self'-isolated and actor-isolated uses
661 |                 self.logger.log(level: .warning, message: "Server timeout")
662 |                 await self.connection.stop(error: SignalRError.serverTimeout(self.serverTimeout))
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:688:43: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
686 |     private func sendWithProtocol(_ message: HubMessage) async throws {
687 |         if self.messageBuffer != nil {
688 |             try await self.messageBuffer?.send(message: message)
    |                                           |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                           `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'send(message:)' risks causing data races between actor-isolated and 'self'-isolated uses
689 |         }
690 |         else {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:541:42: warning: sending value of non-Sendable type '[Any?]' risks causing data races; this is an error in the Swift 6 language mode
539 |         let expectResponse = message.invocationId != nil
540 |         if (expectResponse) {
541 |             var result: Any? = try await handler(message.arguments.value ?? [])
    |                                          |- warning: sending value of non-Sendable type '[Any?]' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending 'self'-isolated value of non-Sendable type '[Any?]' to nonisolated callee risks causing races in between 'self'-isolated and nonisolated uses
542 |             if (result is Void) {
543 |                 // Void is not encodeable
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:549:27: warning: sending value of non-Sendable type '[Any?]' risks causing data races; this is an error in the Swift 6 language mode
547 |             try await sendWithProtocol(completionMessage)
548 |         } else {
549 |             _ = try await handler(message.arguments.value ?? [])
    |                           |- warning: sending value of non-Sendable type '[Any?]' risks causing data races; this is an error in the Swift 6 language mode
    |                           `- note: sending 'self'-isolated value of non-Sendable type '[Any?]' to nonisolated callee risks causing races in between 'self'-isolated and nonisolated uses
550 |         }
551 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:853:34: warning: sending 'message.item.value.some' risks causing data races; this is an error in the Swift 6 language mode
851 |             if let invocation = invocations[message.invocationId!] {
852 |                 if case .Stream(let continuation) = invocation {
853 |                     continuation.yield(message.item.value!)
    |                                  |- warning: sending 'message.item.value.some' risks causing data races; this is an error in the Swift 6 language mode
    |                                  `- note: 'self'-isolated 'message.item.value.some' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
854 |                 }
855 |             }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:835:39: warning: sending value of non-Sendable type 'Result<Any?, any Error>' risks causing data races; this is an error in the Swift 6 language mode
833 |                         _ = await tcs.trySetResult(.failure(SignalRError.invocationError(message.error!)))
834 |                     } else {
835 |                         _ = await tcs.trySetResult(.success(message.result.value))
    |                                       |- warning: sending value of non-Sendable type 'Result<Any?, any Error>' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending 'self'-isolated value of non-Sendable type 'Result<Any?, any Error>' to actor-isolated instance method 'trySetResult' risks causing races in between 'self'-isolated and actor-isolated uses
836 |                     }
837 |                 } else if case .Stream(let continuation) = invocation {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:842:42: warning: sending 'message.result.value.some' risks causing data races; this is an error in the Swift 6 language mode
840 |                     } else {
841 |                         if (message.result.value != nil) {
842 |                             continuation.yield(message.result.value!)
    |                                          |- warning: sending 'message.result.value.some' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: 'self'-isolated 'message.result.value.some' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
843 |                         }
844 |                         continuation.finish()
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:484:37: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
482 |         case let message as StreamItemMessage:
483 |             logger.log(level: .debug, message: "Stream item message received for invocation: \(message.invocationId!)")
484 |             await invocationHandler.setStreamItem(message: message)
    |                                     |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'setStreamItem(message:)' risks causing data races between actor-isolated and 'self'-isolated uses
485 |             break
486 |         case let message as CompletionMessage:
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:488:37: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
486 |         case let message as CompletionMessage:
487 |             logger.log(level: .debug, message: "Completion message received for invocation: \(message.invocationId!), error: \(message.error ?? "nil"), result: \(message.result.value ?? "nil")")
488 |             await invocationHandler.setResult(message: message)
    |                                     |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'setResult(message:)' risks causing data races between actor-isolated and 'self'-isolated uses
489 |             invocationBinder.removeReturnValueType(invocationId: message.invocationId!)
490 |             break
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:518:37: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
516 |         case let message as SequenceMessage:
517 |             if let messageBuffer = self.messageBuffer {
518 |                 await messageBuffer.resetSequenceMessage(message: message)
    |                                     |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'resetSequenceMessage(message:)' risks causing data races between actor-isolated and 'self'-isolated uses
519 |             } else {
520 |                 logger.log(level: .warning, message: "Sequence message received but no message buffer is available.")
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:457:50: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
455 |             for message in hubMessage {
456 |                 if let messageBuffer = self.messageBuffer {
457 |                     if !(try await messageBuffer.shouldProcessMessage(message)) {
    |                                                  |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                                  |- note: sending 'message' to actor-isolated instance method 'shouldProcessMessage' risks causing data races between actor-isolated and local actor-isolated uses
    |                                                  `- note: access can happen concurrently
458 |                         // Don't process the message, we are either waiting for a SequenceMessage or received a duplicate message
459 |                         continue
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:457:50: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
455 |             for message in hubMessage {
456 |                 if let messageBuffer = self.messageBuffer {
457 |                     if !(try await messageBuffer.shouldProcessMessage(message)) {
    |                                                  |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                                  `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'shouldProcessMessage' risks causing data races between actor-isolated and 'self'-isolated uses
458 |                         // Don't process the message, we are either waiting for a SequenceMessage or received a duplicate message
459 |                         continue
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:224:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
222 |
223 |         let typedStream = AsyncThrowingStream<Element, Error> { continuation in
224 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
225 |                 do {
226 |                     for try await item in stream {
    |                                           `- note: closure captures 'stream' which is accessible to code in the current task
227 |                         if let returnVal = item as? Element {
228 |                             continuation.yield(returnVal)
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:228:42: warning: sending 'returnVal' risks causing data races; this is an error in the Swift 6 language mode
226 |                     for try await item in stream {
227 |                         if let returnVal = item as? Element {
228 |                             continuation.yield(returnVal)
    |                                          |- warning: sending 'returnVal' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: task-isolated 'returnVal' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
229 |                         } else {
230 |                             throw SignalRError.invalidOperation("Cannot convert the result of the invocation to the specified type.")
/host/spi-builder-workspace/Sources/SignalRClient/HubConnectionBuilder.swift:104:40: warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
102 |         }
103 |
104 |         let connection = connection ?? HttpConnection(url: url, options: httpConnectionOptions)
    |                                        |- warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: sending task-isolated value of non-Sendable type 'HttpConnectionOptions' to actor-isolated callee risks causing races in between task-isolated and actor-isolated uses
105 |         let logger = Logger(logLevel: logLevel, logHandler: logHandler ?? DefaultLogHandler())
106 |         let hubProtocol = hubProtocol ?? JsonHubProtocol()
[36/40] Compiling SignalRClient HubConnectionBuilder.swift
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:87:16: warning: non-sendable type '[ConnectionFeature : Any]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'features'; this is an error in the Swift 6 language mode
 85 |     private var inherentKeepAlivePrivate: Bool = false
 86 |
 87 |     public var features: [ConnectionFeature: Any] = [:]
    |                `- warning: non-sendable type '[ConnectionFeature : Any]' cannot be returned from actor-isolated implementation to caller of protocol requirement 'features'; this is an error in the Swift 6 language mode
 88 |     public var baseUrl: String
 89 |     public var connectionId: String?
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:551:17: warning: non-sendable parameter type 'Any' cannot be sent from caller of protocol requirement 'setFeature(feature:value:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
549 |     }
550 |
551 |     public func setFeature(feature: ConnectionFeature, value: Any) async {
    |                 `- warning: non-sendable parameter type 'Any' cannot be sent from caller of protocol requirement 'setFeature(feature:value:)' into actor-isolated implementation; this is an error in the Swift 6 language mode
552 |         features[feature] = value
553 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:288:60: warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from actor-isolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
286 |             let request = HttpRequest(method: .POST, url: negotiateUrl, options: options)
287 |
288 |             let (message, response) = try await httpClient.send(request: request)
    |                                                            `- warning: non-sendable result type '(StringOrData, HttpResponse)' cannot be sent from actor-isolated context in call to instance method 'send(request:)'; this is an error in the Swift 6 language mode
289 |
290 |             if response.statusCode != 200 {
/host/spi-builder-workspace/Sources/SignalRClient/HttpClient.swift:47:15: note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 45 | }
 46 |
 47 | public struct HttpResponse {
    |               `- note: consider making struct 'HttpResponse' conform to the 'Sendable' protocol
 48 |     public let statusCode: Int
 49 | }
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:366:32: warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
364 |                 var callStop = false;
365 |                 guard let self = self else { return }
366 |                 if await (self.features[ConnectionFeature.Reconnect] as? Bool) == true {
    |                                `- warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
367 |                     do {
368 |                         if let disconnectedHandler = await self.features[ConnectionFeature.Disconnected] as? () async -> Void {
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:368:65: warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
366 |                 if await (self.features[ConnectionFeature.Reconnect] as? Bool) == true {
367 |                     do {
368 |                         if let disconnectedHandler = await self.features[ConnectionFeature.Disconnected] as? () async -> Void {
    |                                                                 `- warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
369 |                             Task {
370 |                                 await disconnectedHandler();
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:374:59: warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
372 |                         }
373 |                         try await self.transport?.connect(url: url, transferFormat: transferFormat);
374 |                         if let resendHandler = await self.features[ConnectionFeature.Resend] as? () -> Void {
    |                                                           `- warning: non-sendable type '[ConnectionFeature : Any]' of property 'features' cannot exit actor-isolated context; this is an error in the Swift 6 language mode
375 |                             resendHandler();
376 |                         }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:181:27: warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'task()'; this is an error in the Swift 6 language mode
179 |         try await sendWithProtocol(invocationMessage)
180 |         launchStreams(streamIds: streamIds, clientStreams: streamArguments)
181 |         _ = try await tcs.task()
    |                           `- warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'task()'; this is an error in the Swift 6 language mode
182 |     }
183 |
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:200:43: warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'task()'; this is an error in the Swift 6 language mode
198 |         }
199 |
200 |         if let returnVal = (try await tcs.task()) as? TReturn {
    |                                           `- warning: non-sendable result type 'Any?' cannot be sent from actor-isolated context in call to instance method 'task()'; this is an error in the Swift 6 language mode
201 |             return returnVal
202 |         } else {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:210:62: warning: non-sendable result type '(String, AsyncThrowingStream<Any, any Error>)' cannot be sent from actor-isolated context in call to instance method 'createStream()'; this is an error in the Swift 6 language mode
208 |         let (nonstreamArguments, streamArguments) = splitStreamArguments(arguments: arguments)
209 |         let streamIds = await invocationHandler.createClientStreamIds(count: streamArguments.count)
210 |         let (invocationId, stream) = await invocationHandler.createStream()
    |                                                              `- warning: non-sendable result type '(String, AsyncThrowingStream<Any, any Error>)' cannot be sent from actor-isolated context in call to instance method 'createStream()'; this is an error in the Swift 6 language mode
211 |         invocationBinder.registerReturnValueType(invocationId: invocationId, types: Element.self)
212 |         let StreamInvocationMessage = StreamInvocationMessage(invocationId: invocationId, target: method, arguments: AnyEncodableArray(nonstreamArguments), streamIds: streamIds, headers: nil)
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:541:50: warning: expression implicitly coerced from '[Any?]' to '[Any]'
539 |         let expectResponse = message.invocationId != nil
540 |         if (expectResponse) {
541 |             var result: Any? = try await handler(message.arguments.value ?? [])
    |                                                  |                       `- note: explicitly cast to '[Any]' with 'as [Any]' to silence this warning
    |                                                  `- warning: expression implicitly coerced from '[Any?]' to '[Any]'
542 |             if (result is Void) {
543 |                 // Void is not encodeable
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:549:35: warning: expression implicitly coerced from '[Any?]' to '[Any]'
547 |             try await sendWithProtocol(completionMessage)
548 |         } else {
549 |             _ = try await handler(message.arguments.value ?? [])
    |                                   |                       `- note: explicitly cast to '[Any]' with 'as [Any]' to silence this warning
    |                                   `- warning: expression implicitly coerced from '[Any?]' to '[Any]'
550 |         }
551 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:541:42: warning: non-sendable result type 'Any' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
539 |         let expectResponse = message.invocationId != nil
540 |         if (expectResponse) {
541 |             var result: Any? = try await handler(message.arguments.value ?? [])
    |                                          `- warning: non-sendable result type 'Any' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
542 |             if (result is Void) {
543 |                 // Void is not encodeable
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:549:27: warning: non-sendable result type 'Any' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
547 |             try await sendWithProtocol(completionMessage)
548 |         } else {
549 |             _ = try await handler(message.arguments.value ?? [])
    |                           `- warning: non-sendable result type 'Any' cannot be sent from nonisolated context in call to let 'handler'; this is an error in the Swift 6 language mode
550 |         }
551 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:588:31: warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
586 |         // After connection open, perform handshake
587 |         var version = hubProtocol.version
588 |         if !(await connection.features[ConnectionFeature.Reconnect] as? Bool ?? false) {
    |                               `- warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
589 |             // Stateful Reconnect starts with HubProtocol version 2, newer clients connecting to older servers will fail to connect due to
590 |             // the handshake only supporting version 1, so we will try to send version 1 during the handshake to keep old servers working.
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:628:63: warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
626 |             }
627 |
628 |             let useStatefulReconnect = await (self.connection.features[ConnectionFeature.Reconnect] as? Bool) == true
    |                                                               `- warning: non-sendable type '[ConnectionFeature : Any]' of nonisolated property 'features' cannot be sent to actor-isolated context; this is an error in the Swift 6 language mode
629 |             if useStatefulReconnect {
630 |                 self.messageBuffer = MessageBuffer(
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:497:20: warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
495 |         case .serverSentEvents:
496 |             let accessToken = await self.httpClient.accessToken
497 |             return ServerSentEventTransport(httpClient: self.httpClient, accessToken: accessToken, logger: logger, options: options)
    |                    |- warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
    |                    `- note: sending 'self'-isolated value of non-Sendable type 'HttpConnectionOptions' to actor-isolated callee risks causing races in between 'self'-isolated and actor-isolated uses
498 |         case .longPolling:
499 |             return LongPollingTransport(httpClient: httpClient, logger: logger, options: options)
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:499:20: warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
497 |             return ServerSentEventTransport(httpClient: self.httpClient, accessToken: accessToken, logger: logger, options: options)
498 |         case .longPolling:
499 |             return LongPollingTransport(httpClient: httpClient, logger: logger, options: options)
    |                    |- warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
    |                    `- note: sending 'self'-isolated value of non-Sendable type 'HttpConnectionOptions' to actor-isolated callee risks causing races in between 'self'-isolated and actor-isolated uses
500 |         default:
501 |             throw SignalRError.unsupportedTransport("Unkonwn transport type '\(transport)'.")
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:220:42: warning: sending 'self.accessTokenFactory.some' risks causing data races; this is an error in the Swift 6 language mode
218 |                         // the returned access token
219 |                         accessTokenFactory = { return accessToken }
220 |                         await httpClient.setAccessTokenFactory(factory: accessTokenFactory)
    |                                          |- warning: sending 'self.accessTokenFactory.some' risks causing data races; this is an error in the Swift 6 language mode
    |                                          |- note: sending 'self.accessTokenFactory.some' to actor-isolated instance method 'setAccessTokenFactory(factory:)' risks causing data races between actor-isolated and local actor-isolated uses
    |                                          `- note: access can happen concurrently
221 |                     }
222 |                     redirects += 1
/host/spi-builder-workspace/Sources/SignalRClient/HttpConnection.swift:369:34: warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
367 |                     do {
368 |                         if let disconnectedHandler = await self.features[ConnectionFeature.Disconnected] as? () async -> Void {
369 |                             Task {
    |                                  `- warning: passing closure as a 'sending' parameter risks causing data races between 'self'-isolated code and concurrent execution of the closure; this is an error in the Swift 6 language mode
370 |                                 await disconnectedHandler();
    |                                       `- note: closure captures 'disconnectedHandler' which is accessible to 'self'-isolated code
371 |                             }
372 |                         }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:649:42: warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
647 |
648 |             if (!(await connection.inherentKeepAlive)) {
649 |                 await keepAliveScheduler.start {
    |                                          |- warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending 'self'-isolated value of non-Sendable type '() async -> Void' to actor-isolated instance method 'start(sendAction:)' risks causing races in between 'self'-isolated and actor-isolated uses
650 |                     do {
651 |                         let state = self.state()
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:660:42: warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
658 |                 }
659 |             }
660 |             await serverTimeoutScheduler.start {
    |                                          |- warning: sending value of non-Sendable type '() async -> Void' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending 'self'-isolated value of non-Sendable type '() async -> Void' to actor-isolated instance method 'start(sendAction:)' risks causing races in between 'self'-isolated and actor-isolated uses
661 |                 self.logger.log(level: .warning, message: "Server timeout")
662 |                 await self.connection.stop(error: SignalRError.serverTimeout(self.serverTimeout))
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:688:43: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
686 |     private func sendWithProtocol(_ message: HubMessage) async throws {
687 |         if self.messageBuffer != nil {
688 |             try await self.messageBuffer?.send(message: message)
    |                                           |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                           `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'send(message:)' risks causing data races between actor-isolated and 'self'-isolated uses
689 |         }
690 |         else {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:541:42: warning: sending value of non-Sendable type '[Any?]' risks causing data races; this is an error in the Swift 6 language mode
539 |         let expectResponse = message.invocationId != nil
540 |         if (expectResponse) {
541 |             var result: Any? = try await handler(message.arguments.value ?? [])
    |                                          |- warning: sending value of non-Sendable type '[Any?]' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending 'self'-isolated value of non-Sendable type '[Any?]' to nonisolated callee risks causing races in between 'self'-isolated and nonisolated uses
542 |             if (result is Void) {
543 |                 // Void is not encodeable
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:549:27: warning: sending value of non-Sendable type '[Any?]' risks causing data races; this is an error in the Swift 6 language mode
547 |             try await sendWithProtocol(completionMessage)
548 |         } else {
549 |             _ = try await handler(message.arguments.value ?? [])
    |                           |- warning: sending value of non-Sendable type '[Any?]' risks causing data races; this is an error in the Swift 6 language mode
    |                           `- note: sending 'self'-isolated value of non-Sendable type '[Any?]' to nonisolated callee risks causing races in between 'self'-isolated and nonisolated uses
550 |         }
551 |     }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:853:34: warning: sending 'message.item.value.some' risks causing data races; this is an error in the Swift 6 language mode
851 |             if let invocation = invocations[message.invocationId!] {
852 |                 if case .Stream(let continuation) = invocation {
853 |                     continuation.yield(message.item.value!)
    |                                  |- warning: sending 'message.item.value.some' risks causing data races; this is an error in the Swift 6 language mode
    |                                  `- note: 'self'-isolated 'message.item.value.some' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
854 |                 }
855 |             }
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:835:39: warning: sending value of non-Sendable type 'Result<Any?, any Error>' risks causing data races; this is an error in the Swift 6 language mode
833 |                         _ = await tcs.trySetResult(.failure(SignalRError.invocationError(message.error!)))
834 |                     } else {
835 |                         _ = await tcs.trySetResult(.success(message.result.value))
    |                                       |- warning: sending value of non-Sendable type 'Result<Any?, any Error>' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending 'self'-isolated value of non-Sendable type 'Result<Any?, any Error>' to actor-isolated instance method 'trySetResult' risks causing races in between 'self'-isolated and actor-isolated uses
836 |                     }
837 |                 } else if case .Stream(let continuation) = invocation {
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:842:42: warning: sending 'message.result.value.some' risks causing data races; this is an error in the Swift 6 language mode
840 |                     } else {
841 |                         if (message.result.value != nil) {
842 |                             continuation.yield(message.result.value!)
    |                                          |- warning: sending 'message.result.value.some' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: 'self'-isolated 'message.result.value.some' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
843 |                         }
844 |                         continuation.finish()
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:484:37: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
482 |         case let message as StreamItemMessage:
483 |             logger.log(level: .debug, message: "Stream item message received for invocation: \(message.invocationId!)")
484 |             await invocationHandler.setStreamItem(message: message)
    |                                     |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'setStreamItem(message:)' risks causing data races between actor-isolated and 'self'-isolated uses
485 |             break
486 |         case let message as CompletionMessage:
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:488:37: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
486 |         case let message as CompletionMessage:
487 |             logger.log(level: .debug, message: "Completion message received for invocation: \(message.invocationId!), error: \(message.error ?? "nil"), result: \(message.result.value ?? "nil")")
488 |             await invocationHandler.setResult(message: message)
    |                                     |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'setResult(message:)' risks causing data races between actor-isolated and 'self'-isolated uses
489 |             invocationBinder.removeReturnValueType(invocationId: message.invocationId!)
490 |             break
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:518:37: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
516 |         case let message as SequenceMessage:
517 |             if let messageBuffer = self.messageBuffer {
518 |                 await messageBuffer.resetSequenceMessage(message: message)
    |                                     |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                     `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'resetSequenceMessage(message:)' risks causing data races between actor-isolated and 'self'-isolated uses
519 |             } else {
520 |                 logger.log(level: .warning, message: "Sequence message received but no message buffer is available.")
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:457:50: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
455 |             for message in hubMessage {
456 |                 if let messageBuffer = self.messageBuffer {
457 |                     if !(try await messageBuffer.shouldProcessMessage(message)) {
    |                                                  |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                                  |- note: sending 'message' to actor-isolated instance method 'shouldProcessMessage' risks causing data races between actor-isolated and local actor-isolated uses
    |                                                  `- note: access can happen concurrently
458 |                         // Don't process the message, we are either waiting for a SequenceMessage or received a duplicate message
459 |                         continue
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:457:50: warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
455 |             for message in hubMessage {
456 |                 if let messageBuffer = self.messageBuffer {
457 |                     if !(try await messageBuffer.shouldProcessMessage(message)) {
    |                                                  |- warning: sending 'message' risks causing data races; this is an error in the Swift 6 language mode
    |                                                  `- note: sending 'self'-isolated 'message' to actor-isolated instance method 'shouldProcessMessage' risks causing data races between actor-isolated and 'self'-isolated uses
458 |                         // Don't process the message, we are either waiting for a SequenceMessage or received a duplicate message
459 |                         continue
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:224:18: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
222 |
223 |         let typedStream = AsyncThrowingStream<Element, Error> { continuation in
224 |             Task {
    |                  `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
225 |                 do {
226 |                     for try await item in stream {
    |                                           `- note: closure captures 'stream' which is accessible to code in the current task
227 |                         if let returnVal = item as? Element {
228 |                             continuation.yield(returnVal)
/host/spi-builder-workspace/Sources/SignalRClient/HubConnection.swift:228:42: warning: sending 'returnVal' risks causing data races; this is an error in the Swift 6 language mode
226 |                     for try await item in stream {
227 |                         if let returnVal = item as? Element {
228 |                             continuation.yield(returnVal)
    |                                          |- warning: sending 'returnVal' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: task-isolated 'returnVal' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
229 |                         } else {
230 |                             throw SignalRError.invalidOperation("Cannot convert the result of the invocation to the specified type.")
/host/spi-builder-workspace/Sources/SignalRClient/HubConnectionBuilder.swift:104:40: warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
102 |         }
103 |
104 |         let connection = connection ?? HttpConnection(url: url, options: httpConnectionOptions)
    |                                        |- warning: sending value of non-Sendable type 'HttpConnectionOptions' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: sending task-isolated value of non-Sendable type 'HttpConnectionOptions' to actor-isolated callee risks causing races in between task-isolated and actor-isolated uses
105 |         let logger = Logger(logLevel: logLevel, logHandler: logHandler ?? DefaultLogHandler())
106 |         let hubProtocol = hubProtocol ?? JsonHubProtocol()
[37/40] Compiling SignalRClient Transport.swift
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:28:40: warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
 26 |
 27 |     func onReceive(_ handler: OnReceiveHandler?) async {
 28 |         await self.webSocketConnection.onReceive(handler)
    |                                        |- warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: sending 'self'-isolated 'self.webSocketConnection' to nonisolated instance method 'onReceive' risks causing data races between nonisolated and 'self'-isolated uses
 29 |     }
 30 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:32:40: warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
 30 |
 31 |     func onClose(_ handler: OnCloseHander?) async {
 32 |         await self.webSocketConnection.onClose(handler)
    |                                        |- warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: sending 'self'-isolated 'self.webSocketConnection' to nonisolated instance method 'onClose' risks causing data races between nonisolated and 'self'-isolated uses
 33 |     }
 34 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:61:39: warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
 59 |         request.addValue(Utils.getUserAgent(), forHTTPHeaderField: "User-Agent")
 60 |
 61 |         try await webSocketConnection.connect(request: request, transferFormat: transferFormat)
    |                                       |- warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending 'self'-isolated 'self.webSocketConnection' to nonisolated instance method 'connect(request:transferFormat:)' risks causing data races between nonisolated and 'self'-isolated uses
 62 |     }
 63 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:65:39: warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
 63 |
 64 |     func send(_ data: StringOrData) async throws {
 65 |         try await webSocketConnection.send(data)
    |                                       |- warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending 'self'-isolated 'self.webSocketConnection' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
 66 |     }
 67 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:69:39: warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
 67 |
 68 |     func stop(error: Error?) async throws {
 69 |         try await webSocketConnection.stop(error: error)
    |                                       |- warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending 'self'-isolated 'self.webSocketConnection' to nonisolated instance method 'stop(error:)' risks causing data races between nonisolated and 'self'-isolated uses
 70 |     }
 71 |
[38/40] Compiling SignalRClient WebSocketTransport.swift
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:28:40: warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
 26 |
 27 |     func onReceive(_ handler: OnReceiveHandler?) async {
 28 |         await self.webSocketConnection.onReceive(handler)
    |                                        |- warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: sending 'self'-isolated 'self.webSocketConnection' to nonisolated instance method 'onReceive' risks causing data races between nonisolated and 'self'-isolated uses
 29 |     }
 30 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:32:40: warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
 30 |
 31 |     func onClose(_ handler: OnCloseHander?) async {
 32 |         await self.webSocketConnection.onClose(handler)
    |                                        |- warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: sending 'self'-isolated 'self.webSocketConnection' to nonisolated instance method 'onClose' risks causing data races between nonisolated and 'self'-isolated uses
 33 |     }
 34 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:61:39: warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
 59 |         request.addValue(Utils.getUserAgent(), forHTTPHeaderField: "User-Agent")
 60 |
 61 |         try await webSocketConnection.connect(request: request, transferFormat: transferFormat)
    |                                       |- warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending 'self'-isolated 'self.webSocketConnection' to nonisolated instance method 'connect(request:transferFormat:)' risks causing data races between nonisolated and 'self'-isolated uses
 62 |     }
 63 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:65:39: warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
 63 |
 64 |     func send(_ data: StringOrData) async throws {
 65 |         try await webSocketConnection.send(data)
    |                                       |- warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending 'self'-isolated 'self.webSocketConnection' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
 66 |     }
 67 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:69:39: warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
 67 |
 68 |     func stop(error: Error?) async throws {
 69 |         try await webSocketConnection.stop(error: error)
    |                                       |- warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending 'self'-isolated 'self.webSocketConnection' to nonisolated instance method 'stop(error:)' risks causing data races between nonisolated and 'self'-isolated uses
 70 |     }
 71 |
[39/40] Compiling SignalRClient Utils.swift
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:28:40: warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
 26 |
 27 |     func onReceive(_ handler: OnReceiveHandler?) async {
 28 |         await self.webSocketConnection.onReceive(handler)
    |                                        |- warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: sending 'self'-isolated 'self.webSocketConnection' to nonisolated instance method 'onReceive' risks causing data races between nonisolated and 'self'-isolated uses
 29 |     }
 30 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:32:40: warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
 30 |
 31 |     func onClose(_ handler: OnCloseHander?) async {
 32 |         await self.webSocketConnection.onClose(handler)
    |                                        |- warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: sending 'self'-isolated 'self.webSocketConnection' to nonisolated instance method 'onClose' risks causing data races between nonisolated and 'self'-isolated uses
 33 |     }
 34 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:61:39: warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
 59 |         request.addValue(Utils.getUserAgent(), forHTTPHeaderField: "User-Agent")
 60 |
 61 |         try await webSocketConnection.connect(request: request, transferFormat: transferFormat)
    |                                       |- warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending 'self'-isolated 'self.webSocketConnection' to nonisolated instance method 'connect(request:transferFormat:)' risks causing data races between nonisolated and 'self'-isolated uses
 62 |     }
 63 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:65:39: warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
 63 |
 64 |     func send(_ data: StringOrData) async throws {
 65 |         try await webSocketConnection.send(data)
    |                                       |- warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending 'self'-isolated 'self.webSocketConnection' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
 66 |     }
 67 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:69:39: warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
 67 |
 68 |     func stop(error: Error?) async throws {
 69 |         try await webSocketConnection.stop(error: error)
    |                                       |- warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending 'self'-isolated 'self.webSocketConnection' to nonisolated instance method 'stop(error:)' risks causing data races between nonisolated and 'self'-isolated uses
 70 |     }
 71 |
[40/40] Compiling SignalRClient Version.swift
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:28:40: warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
 26 |
 27 |     func onReceive(_ handler: OnReceiveHandler?) async {
 28 |         await self.webSocketConnection.onReceive(handler)
    |                                        |- warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: sending 'self'-isolated 'self.webSocketConnection' to nonisolated instance method 'onReceive' risks causing data races between nonisolated and 'self'-isolated uses
 29 |     }
 30 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:32:40: warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
 30 |
 31 |     func onClose(_ handler: OnCloseHander?) async {
 32 |         await self.webSocketConnection.onClose(handler)
    |                                        |- warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
    |                                        `- note: sending 'self'-isolated 'self.webSocketConnection' to nonisolated instance method 'onClose' risks causing data races between nonisolated and 'self'-isolated uses
 33 |     }
 34 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:61:39: warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
 59 |         request.addValue(Utils.getUserAgent(), forHTTPHeaderField: "User-Agent")
 60 |
 61 |         try await webSocketConnection.connect(request: request, transferFormat: transferFormat)
    |                                       |- warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending 'self'-isolated 'self.webSocketConnection' to nonisolated instance method 'connect(request:transferFormat:)' risks causing data races between nonisolated and 'self'-isolated uses
 62 |     }
 63 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:65:39: warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
 63 |
 64 |     func send(_ data: StringOrData) async throws {
 65 |         try await webSocketConnection.send(data)
    |                                       |- warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending 'self'-isolated 'self.webSocketConnection' to nonisolated instance method 'send' risks causing data races between nonisolated and 'self'-isolated uses
 66 |     }
 67 |
/host/spi-builder-workspace/Sources/SignalRClient/Transport/WebSocketTransport.swift:69:39: warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
 67 |
 68 |     func stop(error: Error?) async throws {
 69 |         try await webSocketConnection.stop(error: error)
    |                                       |- warning: sending 'self.webSocketConnection' risks causing data races; this is an error in the Swift 6 language mode
    |                                       `- note: sending 'self'-isolated 'self.webSocketConnection' to nonisolated instance method 'stop(error:)' risks causing data races between nonisolated and 'self'-isolated uses
 70 |     }
 71 |
Build complete! (11.38s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SignalRClient",
  "name" : "SignalRClient",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "SignalRClient",
      "targets" : [
        "SignalRClient"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SignalRClientTests",
      "module_type" : "SwiftTarget",
      "name" : "SignalRClientTests",
      "path" : "Tests/SignalRClientTests",
      "sources" : [
        "AsyncLockTest.swift",
        "BinaryMessageFormatTests.swift",
        "EventSourceTests.swift",
        "HandshakeProtocolTests.swift",
        "HttpClientTests.swift",
        "HubConnection+OnResultTests.swift",
        "HubConnection+OnTests.swift",
        "HubConnectionTests.swift",
        "JsonHubProtocolTests.swift",
        "LoggerTests.swift",
        "LongPollingTransportTests.swift",
        "MessageBufferTests.swift",
        "MessagePackHubProtocolTests.swift",
        "Msgpack/MsgpackDecoderTests.swift",
        "Msgpack/MsgpackEncoderTests.swift",
        "ServerSentEventTransportTests.swift",
        "TaskCompletionSourceTests.swift",
        "TextMessageFormatTests.swift",
        "TimeSchedulerTests.swift",
        "Utils.swift",
        "UtilsTest.swift",
        "WebSocketTransportTests.swift"
      ],
      "target_dependencies" : [
        "SignalRClient"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SignalRClientIntegrationTests",
      "module_type" : "SwiftTarget",
      "name" : "SignalRClientIntegrationTests",
      "path" : "Tests/SignalRClientIntegrationTests",
      "sources" : [
        "IntegrationTests.swift"
      ],
      "target_dependencies" : [
        "SignalRClient"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SignalRClient",
      "module_type" : "SwiftTarget",
      "name" : "SignalRClient",
      "path" : "Sources/SignalRClient",
      "product_memberships" : [
        "SignalRClient"
      ],
      "sources" : [
        "AsyncLock.swift",
        "AtomicState.swift",
        "ConnectionProtocol.swift",
        "HandshakeProtocol.swift",
        "HttpClient.swift",
        "HttpConnection.swift",
        "HubConnection+On.swift",
        "HubConnection+OnResult.swift",
        "HubConnection.swift",
        "HubConnectionBuilder.swift",
        "InvocationBinder.swift",
        "Logger.swift",
        "MessageBuffer.swift",
        "Protocols/BinaryMessageFormat.swift",
        "Protocols/HubMessage.swift",
        "Protocols/HubProtocol.swift",
        "Protocols/JsonHubProtocol.swift",
        "Protocols/MessagePackHubProtocol.swift",
        "Protocols/MessageType.swift",
        "Protocols/Msgpack/MsgpackCommon.swift",
        "Protocols/Msgpack/MsgpackDecoder.swift",
        "Protocols/Msgpack/MsgpackEncoder.swift",
        "Protocols/TextMessageFormat.swift",
        "RetryPolicy.swift",
        "SignalRError.swift",
        "StatefulReconnectOptions.swift",
        "StreamResult.swift",
        "TaskCompletionSource.swift",
        "TimeScheduler.swift",
        "TransferFormat.swift",
        "Transport/EventSource.swift",
        "Transport/LongPollingTransport.swift",
        "Transport/ServerSentEventTransport.swift",
        "Transport/Transport.swift",
        "Transport/WebSocketTransport.swift",
        "Utils.swift",
        "Version.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.10"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:4d72617259f6eef9908440c49a67b79bc4f973ae19f78187418ddfb5b178d4ec
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.