The Swift Package Index logo.Swift Package Index

Build Information

Successful build of HAKit, reference main (c24be0), with Swift 6.1 for macOS (SPM) on 8 Nov 2026 01:08:01 UTC.

Swift 6 data race errors: 45

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

236 |                 }
237 |             }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:274:49: warning: capture of 'data' with non-sendable type 'HAData' in a '@Sendable' closure
272 |                 workQueue.async {
273 |                     do {
274 |                         let value = try T(data: data)
    |                                                 `- warning: capture of 'data' with non-sendable type 'HAData' in a '@Sendable' closure
275 |                         callbackQueue.async {
276 |                             handler(token, value)
/Users/admin/builder/spi-builder-workspace/Source/Data/HAData.swift:6:13: note: consider making enum 'HAData' conform to the 'Sendable' protocol
 4 | ///
 5 | /// The root-level information in either the `result` for individual requests or `event` for subscriptions.
 6 | public enum HAData: Equatable {
   |             `- note: consider making enum 'HAData' conform to the 'Sendable' protocol
 7 |     /// A dictionary response.
 8 |     /// - SeeAlso: `get(_:)`and associated methods
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:29: warning: capture of 'handler' with non-sendable type '(any HACancellable, T) -> Void' in a '@Sendable' closure
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                             |- warning: capture of 'handler' with non-sendable type '(any HACancellable, T) -> Void' in a '@Sendable' closure
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:37: warning: capture of 'token' with non-sendable type 'any HACancellable' in a '@Sendable' closure
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                                     `- warning: capture of 'token' with non-sendable type 'any HACancellable' in a '@Sendable' closure
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/HARequestToken.swift:4:17: note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
2 | ///
3 | /// You do not need to strongly retain this value. Requests are only cancelled explicitly.
4 | public protocol HACancellable {
  |                 `- note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
5 |     /// Cancel the request or subscription represented by this.
6 |     func cancel()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:29: warning: capture of 'handler' with non-sendable type '(any HACancellable, T) -> Void' in a '@Sendable' closure
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                             |- warning: capture of 'handler' with non-sendable type '(any HACancellable, T) -> Void' in a '@Sendable' closure
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:37: warning: capture of 'token' with non-sendable type 'any HACancellable' in a '@Sendable' closure
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                                     `- warning: capture of 'token' with non-sendable type 'any HACancellable' in a '@Sendable' closure
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/HARequestToken.swift:4:17: note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
2 | ///
3 | /// You do not need to strongly retain this value. Requests are only cancelled explicitly.
4 | public protocol HACancellable {
  |                 `- note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
5 |     /// Cancel the request or subscription represented by this.
6 |     func cancel()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:44: warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
259 |     }
260 |
261 |     private func commonSubscribe<T>(
    |                                  `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
262 |         to request: HATypedSubscription<T>,
263 |         allowConnecting: Bool = true,
    :
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                                            `- warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:338:30: warning: capture of 'request' with non-sendable type 'HARequest' in a '@Sendable' closure
336 |     ) {
337 |         workQueue.async { [connection] in
338 |             var dictionary = request.data
    |                              `- warning: capture of 'request' with non-sendable type 'HARequest' in a '@Sendable' closure
339 |             if let identifier = identifier {
340 |                 dictionary["id"] = identifier.rawValue
/Users/admin/builder/spi-builder-workspace/Source/Requests/HARequest.swift:4:15: note: consider making struct 'HARequest' conform to the 'Sendable' protocol
 2 |
 3 | /// A request, with data, to be issued
 4 | public struct HARequest {
   |               `- note: consider making struct 'HARequest' conform to the 'Sendable' protocol
 5 |     /// Create a request
 6 |     /// - Precondition: data is a JSON-encodable value. From `JSONSerialization` documentation:
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:352:13: warning: capture of 'connection' with non-sendable type 'HAWebSocket?' in a '@Sendable' closure
350 |             }
351 |
352 |             connection?.write(string: string)
    |             `- warning: capture of 'connection' with non-sendable type 'HAWebSocket?' in a '@Sendable' closure
353 |         }
354 |     }
/Users/admin/builder/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:13:22: note: class 'HAWebSocket' does not conform to the 'Sendable' protocol
11 | /// ``HAURLSessionWebSocketEngine``, backed by `URLSessionWebSocketTask`). It owns the engine,
12 | /// registers itself as the engine's delegate, and forwards transport events to its own delegate.
13 | internal final class HAWebSocket {
   |                      `- note: class 'HAWebSocket' does not conform to the 'Sendable' protocol
14 |     /// The request used to open the connection.
15 |     let request: URLRequest
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:381:25: warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
  3 | // NOTE: see HAConnection.swift for how to access these types
  4 |
  5 | internal class HAConnectionImpl: HAConnection {
    |                `- note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  6 |     weak var delegate: HAConnectionDelegate?
  7 |     var configuration: HAConnectionConfiguration
    :
379 |                 let task = urlSession.dataTask(with: httpRequest) { [self] data, response, error in
380 |                     if let response = response {
381 |                         responseController.didReceive(
    |                         `- warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
382 |                             for: identifier,
383 |                             // This badly-typed API will always return HTTPURLResponses to http/https endpoints.
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:13: warning: capture of 'connection' with non-sendable type 'HAWebSocket?' in a '@Sendable' closure
414 |         audioData.insert(sttBinaryHandlerId, at: 0)
415 |         workQueue.async { [connection] in
416 |             connection?.write(data: audioData) { [weak self] in
    |             `- warning: capture of 'connection' with non-sendable type 'HAWebSocket?' in a '@Sendable' closure
417 |                 guard let self else { return }
418 |                 self.responseController.didWrite()
/Users/admin/builder/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:13:22: note: class 'HAWebSocket' does not conform to the 'Sendable' protocol
11 | /// ``HAURLSessionWebSocketEngine``, backed by `URLSessionWebSocketTask`). It owns the engine,
12 | /// registers itself as the engine's delegate, and forwards transport events to its own delegate.
13 | internal final class HAWebSocket {
   |                      `- note: class 'HAWebSocket' does not conform to the 'Sendable' protocol
14 |     /// The request used to open the connection.
15 |     let request: URLRequest
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:56: warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
  3 | // NOTE: see HAConnection.swift for how to access these types
  4 |
  5 | internal class HAConnectionImpl: HAConnection {
    |                `- note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  6 |     weak var delegate: HAConnectionDelegate?
  7 |     var configuration: HAConnectionConfiguration
    :
414 |         audioData.insert(sttBinaryHandlerId, at: 0)
415 |         workQueue.async { [connection] in
416 |             connection?.write(data: audioData) { [weak self] in
    |                                                        `- warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
417 |                 guard let self else { return }
418 |                 self.responseController.didWrite()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:37: warning: reference to captured var 'audioData' in concurrently-executing code
414 |         audioData.insert(sttBinaryHandlerId, at: 0)
415 |         workQueue.async { [connection] in
416 |             connection?.write(data: audioData) { [weak self] in
    |                                     `- warning: reference to captured var 'audioData' in concurrently-executing code
417 |                 guard let self else { return }
418 |                 self.responseController.didWrite()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:421:25: warning: capture of 'request' with non-sendable type 'HARequestInvocationSingle' in a '@Sendable' closure
419 |                 if let identifier, let request = self.requestController.single(for: identifier) {
420 |                     callbackQueue.async {
421 |                         request.resolve(.success(.empty))
    |                         `- warning: capture of 'request' with non-sendable type 'HARequestInvocationSingle' in a '@Sendable' closure
422 |                     }
423 |                     requestController.clear(invocation: request)
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSingle.swift:1:16: note: class 'HARequestInvocationSingle' does not conform to the 'Sendable' protocol
 1 | internal class HARequestInvocationSingle: HARequestInvocation {
   |                `- note: class 'HARequestInvocationSingle' does not conform to the 'Sendable' protocol
 2 |     private var completion: HAResetLock<HAConnection.RequestCompletion>
 3 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:463:17: warning: sending 'handler' risks causing data races; this is an error in the Swift 6 language mode
461 |         send(.init(type: .ping, data: [:])) { result in
462 |             DispatchQueue.main.async {
463 |                 handler(result.map { _ in () }.mapError { $0 })
    |                 |- warning: sending 'handler' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'handler' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
464 |             }
465 |         }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:463:25: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
461 |         send(.init(type: .ping, data: [:])) { result in
462 |             DispatchQueue.main.async {
463 |                 handler(result.map { _ in () }.mapError { $0 })
    |                         |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'result' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
464 |             }
465 |         }
[65/79] Compiling HAKit HAConnectionImpl+Requests.swift
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:48:21: warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in a '@Sendable' closure
46 |             if let subscription = requestController.subscription(for: identifier) {
47 |                 callbackQueue.async { [self] in
48 |                     subscription.invoke(token: HACancellableImpl { [requestController] in
   |                     `- warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in a '@Sendable' closure
49 |                         requestController.cancel(subscription)
50 |                     }, event: data)
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSubscription.swift:1:16: note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 1 | internal class HARequestInvocationSubscription: HARequestInvocation {
   |                `- note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 2 |     private var handler: HAResetLock<HAConnection.SubscriptionHandler>
 3 |     private var initiated: HAResetLock<HAConnection.SubscriptionInitiatedHandler>
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:48:69: warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
46 |             if let subscription = requestController.subscription(for: identifier) {
47 |                 callbackQueue.async { [self] in
48 |                     subscription.invoke(token: HACancellableImpl { [requestController] in
   |                                                                     `- warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
49 |                         requestController.cancel(subscription)
50 |                     }, event: data)
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:5:16: note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  3 | // NOTE: see HAConnection.swift for how to access these types
  4 |
  5 | internal class HAConnectionImpl: HAConnection {
    |                `- note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  6 |     weak var delegate: HAConnectionDelegate?
  7 |     var configuration: HAConnectionConfiguration
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:50:31: warning: capture of 'data' with non-sendable type 'HAData' in a '@Sendable' closure
48 |                     subscription.invoke(token: HACancellableImpl { [requestController] in
49 |                         requestController.cancel(subscription)
50 |                     }, event: data)
   |                               `- warning: capture of 'data' with non-sendable type 'HAData' in a '@Sendable' closure
51 |                 }
52 |             } else {
/Users/admin/builder/spi-builder-workspace/Source/Data/HAData.swift:6:13: note: consider making enum 'HAData' conform to the 'Sendable' protocol
 4 | ///
 5 | /// The root-level information in either the `result` for individual requests or `event` for subscriptions.
 6 | public enum HAData: Equatable {
   |             `- note: consider making enum 'HAData' conform to the 'Sendable' protocol
 7 |     /// A dictionary response.
 8 |     /// - SeeAlso: `get(_:)`and associated methods
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:49:50: warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in an isolated closure; this is an error in the Swift 6 language mode
47 |                 callbackQueue.async { [self] in
48 |                     subscription.invoke(token: HACancellableImpl { [requestController] in
49 |                         requestController.cancel(subscription)
   |                                                  `- warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in an isolated closure; this is an error in the Swift 6 language mode
50 |                     }, event: data)
51 |                 }
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSubscription.swift:1:16: note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 1 | internal class HARequestInvocationSubscription: HARequestInvocation {
   |                `- note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 2 |     private var handler: HAResetLock<HAConnection.SubscriptionHandler>
 3 |     private var initiated: HAResetLock<HAConnection.SubscriptionInitiatedHandler>
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:58:21: warning: capture of 'request' with non-sendable type 'HARequestInvocationSingle' in a '@Sendable' closure
56 |             if let request = requestController.single(for: identifier) {
57 |                 callbackQueue.async {
58 |                     request.resolve(result)
   |                     `- warning: capture of 'request' with non-sendable type 'HARequestInvocationSingle' in a '@Sendable' closure
59 |                 }
60 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSingle.swift:1:16: note: class 'HARequestInvocationSingle' does not conform to the 'Sendable' protocol
 1 | internal class HARequestInvocationSingle: HARequestInvocation {
   |                `- note: class 'HARequestInvocationSingle' does not conform to the 'Sendable' protocol
 2 |     private var completion: HAResetLock<HAConnection.RequestCompletion>
 3 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:58:37: warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
56 |             if let request = requestController.single(for: identifier) {
57 |                 callbackQueue.async {
58 |                     request.resolve(result)
   |                                     `- warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
59 |                 }
60 |
/Users/admin/builder/spi-builder-workspace/Source/Data/HAData.swift:6:13: note: consider making enum 'HAData' conform to the 'Sendable' protocol
 4 | ///
 5 | /// The root-level information in either the `result` for individual requests or `event` for subscriptions.
 6 | public enum HAData: Equatable {
   |             `- note: consider making enum 'HAData' conform to the 'Sendable' protocol
 7 |     /// A dictionary response.
 8 |     /// - SeeAlso: `get(_:)`and associated methods
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:64:21: warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in a '@Sendable' closure
62 |             } else if let subscription = requestController.subscription(for: identifier) {
63 |                 callbackQueue.async {
64 |                     subscription.resolve(result)
   |                     `- warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in a '@Sendable' closure
65 |                 }
66 |             } else {
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSubscription.swift:1:16: note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 1 | internal class HARequestInvocationSubscription: HARequestInvocation {
   |                `- note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 2 |     private var handler: HAResetLock<HAConnection.SubscriptionHandler>
 3 |     private var initiated: HAResetLock<HAConnection.SubscriptionInitiatedHandler>
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:64:42: warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
62 |             } else if let subscription = requestController.subscription(for: identifier) {
63 |                 callbackQueue.async {
64 |                     subscription.resolve(result)
   |                                          `- warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
65 |                 }
66 |             } else {
/Users/admin/builder/spi-builder-workspace/Source/Data/HAData.swift:6:13: note: consider making enum 'HAData' conform to the 'Sendable' protocol
 4 | ///
 5 | /// The root-level information in either the `result` for individual requests or `event` for subscriptions.
 6 | public enum HAData: Equatable {
   |             `- note: consider making enum 'HAData' conform to the 'Sendable' protocol
 7 |     /// A dictionary response.
 8 |     /// - SeeAlso: `get(_:)`and associated methods
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:33:13: warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
  3 | // NOTE: see HAConnection.swift for how to access these types
  4 |
  5 | internal class HAConnectionImpl: HAConnection {
    |                `- note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  6 |     weak var delegate: HAConnectionDelegate?
  7 |     var configuration: HAConnectionConfiguration
    :
 31 |     internal func notifyState() {
 32 |         callbackQueue.async { [self, state] in
 33 |             delegate?.connection(self, didTransitionTo: state)
    |             `- warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
 34 |             NotificationCenter.default.post(
 35 |                 name: HAConnectionState.didTransitionToStateNotification,
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:33:57: warning: capture of 'state' with non-sendable type 'HAConnectionState' in a '@Sendable' closure
 31 |     internal func notifyState() {
 32 |         callbackQueue.async { [self, state] in
 33 |             delegate?.connection(self, didTransitionTo: state)
    |                                                         `- warning: capture of 'state' with non-sendable type 'HAConnectionState' in a '@Sendable' closure
 34 |             NotificationCenter.default.post(
 35 |                 name: HAConnectionState.didTransitionToStateNotification,
/Users/admin/builder/spi-builder-workspace/Source/HAConnection.swift:14:13: note: consider making enum 'HAConnectionState' conform to the 'Sendable' protocol
 12 |
 13 | /// State of the connection
 14 | public enum HAConnectionState: Equatable {
    |             `- note: consider making enum 'HAConnectionState' conform to the 'Sendable' protocol
 15 |     /// Notification fired when state transitions occur
 16 |     ///
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:138:47: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
132 |     }
133 |
134 |     func performConnectionChange(_ block: @escaping () -> Void) {
    |                                    `- note: parameter 'block' is implicitly non-sendable
135 |         if Thread.isMainThread {
136 |             block()
137 |         } else {
138 |             DispatchQueue.main.async(execute: block)
    |                                               `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
139 |         }
140 |     }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:225:53: warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
223 |         send(request.request) { [workQueue, callbackQueue] result in
224 |             workQueue.async {
225 |                 let converted: Result<T, HAError> = result.flatMap { data in
    |                                                     `- warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
226 |                     do {
227 |                         let updated = try T(data: data)
/Users/admin/builder/spi-builder-workspace/Source/Data/HAData.swift:6:13: note: consider making enum 'HAData' conform to the 'Sendable' protocol
 4 | ///
 5 | /// The root-level information in either the `result` for individual requests or `event` for subscriptions.
 6 | public enum HAData: Equatable {
   |             `- note: consider making enum 'HAData' conform to the 'Sendable' protocol
 7 |     /// A dictionary response.
 8 |     /// - SeeAlso: `get(_:)`and associated methods
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:235:21: warning: capture of 'completion' with non-sendable type '(Result<T, HAError>) -> Void' in a '@Sendable' closure
233 |
234 |                 callbackQueue.async {
235 |                     completion(converted)
    |                     |- warning: capture of 'completion' with non-sendable type '(Result<T, HAError>) -> Void' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
236 |                 }
237 |             }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:235:21: warning: capture of 'completion' with non-sendable type '(Result<T, HAError>) -> Void' in a '@Sendable' closure
233 |
234 |                 callbackQueue.async {
235 |                     completion(converted)
    |                     |- warning: capture of 'completion' with non-sendable type '(Result<T, HAError>) -> Void' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
236 |                 }
237 |             }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:235:32: warning: capture of 'converted' with non-sendable type 'Result<T, HAError>' in a '@Sendable' closure
217 |
218 |     @discardableResult
219 |     func send<T>(
    |               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
220 |         _ request: HATypedRequest<T>,
221 |         completion: @escaping (Result<T, HAError>) -> Void
    :
233 |
234 |                 callbackQueue.async {
235 |                     completion(converted)
    |                                `- warning: capture of 'converted' with non-sendable type 'Result<T, HAError>' in a '@Sendable' closure
236 |                 }
237 |             }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:274:49: warning: capture of 'data' with non-sendable type 'HAData' in a '@Sendable' closure
272 |                 workQueue.async {
273 |                     do {
274 |                         let value = try T(data: data)
    |                                                 `- warning: capture of 'data' with non-sendable type 'HAData' in a '@Sendable' closure
275 |                         callbackQueue.async {
276 |                             handler(token, value)
/Users/admin/builder/spi-builder-workspace/Source/Data/HAData.swift:6:13: note: consider making enum 'HAData' conform to the 'Sendable' protocol
 4 | ///
 5 | /// The root-level information in either the `result` for individual requests or `event` for subscriptions.
 6 | public enum HAData: Equatable {
   |             `- note: consider making enum 'HAData' conform to the 'Sendable' protocol
 7 |     /// A dictionary response.
 8 |     /// - SeeAlso: `get(_:)`and associated methods
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:29: warning: capture of 'handler' with non-sendable type '(any HACancellable, T) -> Void' in a '@Sendable' closure
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                             |- warning: capture of 'handler' with non-sendable type '(any HACancellable, T) -> Void' in a '@Sendable' closure
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:37: warning: capture of 'token' with non-sendable type 'any HACancellable' in a '@Sendable' closure
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                                     `- warning: capture of 'token' with non-sendable type 'any HACancellable' in a '@Sendable' closure
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/HARequestToken.swift:4:17: note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
2 | ///
3 | /// You do not need to strongly retain this value. Requests are only cancelled explicitly.
4 | public protocol HACancellable {
  |                 `- note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
5 |     /// Cancel the request or subscription represented by this.
6 |     func cancel()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:29: warning: capture of 'handler' with non-sendable type '(any HACancellable, T) -> Void' in a '@Sendable' closure
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                             |- warning: capture of 'handler' with non-sendable type '(any HACancellable, T) -> Void' in a '@Sendable' closure
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:37: warning: capture of 'token' with non-sendable type 'any HACancellable' in a '@Sendable' closure
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                                     `- warning: capture of 'token' with non-sendable type 'any HACancellable' in a '@Sendable' closure
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/HARequestToken.swift:4:17: note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
2 | ///
3 | /// You do not need to strongly retain this value. Requests are only cancelled explicitly.
4 | public protocol HACancellable {
  |                 `- note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
5 |     /// Cancel the request or subscription represented by this.
6 |     func cancel()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:44: warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
259 |     }
260 |
261 |     private func commonSubscribe<T>(
    |                                  `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
262 |         to request: HATypedSubscription<T>,
263 |         allowConnecting: Bool = true,
    :
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                                            `- warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:338:30: warning: capture of 'request' with non-sendable type 'HARequest' in a '@Sendable' closure
336 |     ) {
337 |         workQueue.async { [connection] in
338 |             var dictionary = request.data
    |                              `- warning: capture of 'request' with non-sendable type 'HARequest' in a '@Sendable' closure
339 |             if let identifier = identifier {
340 |                 dictionary["id"] = identifier.rawValue
/Users/admin/builder/spi-builder-workspace/Source/Requests/HARequest.swift:4:15: note: consider making struct 'HARequest' conform to the 'Sendable' protocol
 2 |
 3 | /// A request, with data, to be issued
 4 | public struct HARequest {
   |               `- note: consider making struct 'HARequest' conform to the 'Sendable' protocol
 5 |     /// Create a request
 6 |     /// - Precondition: data is a JSON-encodable value. From `JSONSerialization` documentation:
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:352:13: warning: capture of 'connection' with non-sendable type 'HAWebSocket?' in a '@Sendable' closure
350 |             }
351 |
352 |             connection?.write(string: string)
    |             `- warning: capture of 'connection' with non-sendable type 'HAWebSocket?' in a '@Sendable' closure
353 |         }
354 |     }
/Users/admin/builder/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:13:22: note: class 'HAWebSocket' does not conform to the 'Sendable' protocol
11 | /// ``HAURLSessionWebSocketEngine``, backed by `URLSessionWebSocketTask`). It owns the engine,
12 | /// registers itself as the engine's delegate, and forwards transport events to its own delegate.
13 | internal final class HAWebSocket {
   |                      `- note: class 'HAWebSocket' does not conform to the 'Sendable' protocol
14 |     /// The request used to open the connection.
15 |     let request: URLRequest
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:381:25: warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
  3 | // NOTE: see HAConnection.swift for how to access these types
  4 |
  5 | internal class HAConnectionImpl: HAConnection {
    |                `- note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  6 |     weak var delegate: HAConnectionDelegate?
  7 |     var configuration: HAConnectionConfiguration
    :
379 |                 let task = urlSession.dataTask(with: httpRequest) { [self] data, response, error in
380 |                     if let response = response {
381 |                         responseController.didReceive(
    |                         `- warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
382 |                             for: identifier,
383 |                             // This badly-typed API will always return HTTPURLResponses to http/https endpoints.
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:13: warning: capture of 'connection' with non-sendable type 'HAWebSocket?' in a '@Sendable' closure
414 |         audioData.insert(sttBinaryHandlerId, at: 0)
415 |         workQueue.async { [connection] in
416 |             connection?.write(data: audioData) { [weak self] in
    |             `- warning: capture of 'connection' with non-sendable type 'HAWebSocket?' in a '@Sendable' closure
417 |                 guard let self else { return }
418 |                 self.responseController.didWrite()
/Users/admin/builder/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:13:22: note: class 'HAWebSocket' does not conform to the 'Sendable' protocol
11 | /// ``HAURLSessionWebSocketEngine``, backed by `URLSessionWebSocketTask`). It owns the engine,
12 | /// registers itself as the engine's delegate, and forwards transport events to its own delegate.
13 | internal final class HAWebSocket {
   |                      `- note: class 'HAWebSocket' does not conform to the 'Sendable' protocol
14 |     /// The request used to open the connection.
15 |     let request: URLRequest
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:56: warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
  3 | // NOTE: see HAConnection.swift for how to access these types
  4 |
  5 | internal class HAConnectionImpl: HAConnection {
    |                `- note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  6 |     weak var delegate: HAConnectionDelegate?
  7 |     var configuration: HAConnectionConfiguration
    :
414 |         audioData.insert(sttBinaryHandlerId, at: 0)
415 |         workQueue.async { [connection] in
416 |             connection?.write(data: audioData) { [weak self] in
    |                                                        `- warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
417 |                 guard let self else { return }
418 |                 self.responseController.didWrite()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:37: warning: reference to captured var 'audioData' in concurrently-executing code
414 |         audioData.insert(sttBinaryHandlerId, at: 0)
415 |         workQueue.async { [connection] in
416 |             connection?.write(data: audioData) { [weak self] in
    |                                     `- warning: reference to captured var 'audioData' in concurrently-executing code
417 |                 guard let self else { return }
418 |                 self.responseController.didWrite()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:421:25: warning: capture of 'request' with non-sendable type 'HARequestInvocationSingle' in a '@Sendable' closure
419 |                 if let identifier, let request = self.requestController.single(for: identifier) {
420 |                     callbackQueue.async {
421 |                         request.resolve(.success(.empty))
    |                         `- warning: capture of 'request' with non-sendable type 'HARequestInvocationSingle' in a '@Sendable' closure
422 |                     }
423 |                     requestController.clear(invocation: request)
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSingle.swift:1:16: note: class 'HARequestInvocationSingle' does not conform to the 'Sendable' protocol
 1 | internal class HARequestInvocationSingle: HARequestInvocation {
   |                `- note: class 'HARequestInvocationSingle' does not conform to the 'Sendable' protocol
 2 |     private var completion: HAResetLock<HAConnection.RequestCompletion>
 3 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:463:17: warning: sending 'handler' risks causing data races; this is an error in the Swift 6 language mode
461 |         send(.init(type: .ping, data: [:])) { result in
462 |             DispatchQueue.main.async {
463 |                 handler(result.map { _ in () }.mapError { $0 })
    |                 |- warning: sending 'handler' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'handler' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
464 |             }
465 |         }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:463:25: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
461 |         send(.init(type: .ping, data: [:])) { result in
462 |             DispatchQueue.main.async {
463 |                 handler(result.map { _ in () }.mapError { $0 })
    |                         |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'result' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
464 |             }
465 |         }
[66/79] Compiling HAKit HAConnectionImpl+Responses.swift
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:48:21: warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in a '@Sendable' closure
46 |             if let subscription = requestController.subscription(for: identifier) {
47 |                 callbackQueue.async { [self] in
48 |                     subscription.invoke(token: HACancellableImpl { [requestController] in
   |                     `- warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in a '@Sendable' closure
49 |                         requestController.cancel(subscription)
50 |                     }, event: data)
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSubscription.swift:1:16: note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 1 | internal class HARequestInvocationSubscription: HARequestInvocation {
   |                `- note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 2 |     private var handler: HAResetLock<HAConnection.SubscriptionHandler>
 3 |     private var initiated: HAResetLock<HAConnection.SubscriptionInitiatedHandler>
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:48:69: warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
46 |             if let subscription = requestController.subscription(for: identifier) {
47 |                 callbackQueue.async { [self] in
48 |                     subscription.invoke(token: HACancellableImpl { [requestController] in
   |                                                                     `- warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
49 |                         requestController.cancel(subscription)
50 |                     }, event: data)
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:5:16: note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  3 | // NOTE: see HAConnection.swift for how to access these types
  4 |
  5 | internal class HAConnectionImpl: HAConnection {
    |                `- note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  6 |     weak var delegate: HAConnectionDelegate?
  7 |     var configuration: HAConnectionConfiguration
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:50:31: warning: capture of 'data' with non-sendable type 'HAData' in a '@Sendable' closure
48 |                     subscription.invoke(token: HACancellableImpl { [requestController] in
49 |                         requestController.cancel(subscription)
50 |                     }, event: data)
   |                               `- warning: capture of 'data' with non-sendable type 'HAData' in a '@Sendable' closure
51 |                 }
52 |             } else {
/Users/admin/builder/spi-builder-workspace/Source/Data/HAData.swift:6:13: note: consider making enum 'HAData' conform to the 'Sendable' protocol
 4 | ///
 5 | /// The root-level information in either the `result` for individual requests or `event` for subscriptions.
 6 | public enum HAData: Equatable {
   |             `- note: consider making enum 'HAData' conform to the 'Sendable' protocol
 7 |     /// A dictionary response.
 8 |     /// - SeeAlso: `get(_:)`and associated methods
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:49:50: warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in an isolated closure; this is an error in the Swift 6 language mode
47 |                 callbackQueue.async { [self] in
48 |                     subscription.invoke(token: HACancellableImpl { [requestController] in
49 |                         requestController.cancel(subscription)
   |                                                  `- warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in an isolated closure; this is an error in the Swift 6 language mode
50 |                     }, event: data)
51 |                 }
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSubscription.swift:1:16: note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 1 | internal class HARequestInvocationSubscription: HARequestInvocation {
   |                `- note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 2 |     private var handler: HAResetLock<HAConnection.SubscriptionHandler>
 3 |     private var initiated: HAResetLock<HAConnection.SubscriptionInitiatedHandler>
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:58:21: warning: capture of 'request' with non-sendable type 'HARequestInvocationSingle' in a '@Sendable' closure
56 |             if let request = requestController.single(for: identifier) {
57 |                 callbackQueue.async {
58 |                     request.resolve(result)
   |                     `- warning: capture of 'request' with non-sendable type 'HARequestInvocationSingle' in a '@Sendable' closure
59 |                 }
60 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSingle.swift:1:16: note: class 'HARequestInvocationSingle' does not conform to the 'Sendable' protocol
 1 | internal class HARequestInvocationSingle: HARequestInvocation {
   |                `- note: class 'HARequestInvocationSingle' does not conform to the 'Sendable' protocol
 2 |     private var completion: HAResetLock<HAConnection.RequestCompletion>
 3 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:58:37: warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
56 |             if let request = requestController.single(for: identifier) {
57 |                 callbackQueue.async {
58 |                     request.resolve(result)
   |                                     `- warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
59 |                 }
60 |
/Users/admin/builder/spi-builder-workspace/Source/Data/HAData.swift:6:13: note: consider making enum 'HAData' conform to the 'Sendable' protocol
 4 | ///
 5 | /// The root-level information in either the `result` for individual requests or `event` for subscriptions.
 6 | public enum HAData: Equatable {
   |             `- note: consider making enum 'HAData' conform to the 'Sendable' protocol
 7 |     /// A dictionary response.
 8 |     /// - SeeAlso: `get(_:)`and associated methods
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:64:21: warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in a '@Sendable' closure
62 |             } else if let subscription = requestController.subscription(for: identifier) {
63 |                 callbackQueue.async {
64 |                     subscription.resolve(result)
   |                     `- warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in a '@Sendable' closure
65 |                 }
66 |             } else {
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSubscription.swift:1:16: note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 1 | internal class HARequestInvocationSubscription: HARequestInvocation {
   |                `- note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 2 |     private var handler: HAResetLock<HAConnection.SubscriptionHandler>
 3 |     private var initiated: HAResetLock<HAConnection.SubscriptionInitiatedHandler>
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:64:42: warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
62 |             } else if let subscription = requestController.subscription(for: identifier) {
63 |                 callbackQueue.async {
64 |                     subscription.resolve(result)
   |                                          `- warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
65 |                 }
66 |             } else {
/Users/admin/builder/spi-builder-workspace/Source/Data/HAData.swift:6:13: note: consider making enum 'HAData' conform to the 'Sendable' protocol
 4 | ///
 5 | /// The root-level information in either the `result` for individual requests or `event` for subscriptions.
 6 | public enum HAData: Equatable {
   |             `- note: consider making enum 'HAData' conform to the 'Sendable' protocol
 7 |     /// A dictionary response.
 8 |     /// - SeeAlso: `get(_:)`and associated methods
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:33:13: warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
  3 | // NOTE: see HAConnection.swift for how to access these types
  4 |
  5 | internal class HAConnectionImpl: HAConnection {
    |                `- note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  6 |     weak var delegate: HAConnectionDelegate?
  7 |     var configuration: HAConnectionConfiguration
    :
 31 |     internal func notifyState() {
 32 |         callbackQueue.async { [self, state] in
 33 |             delegate?.connection(self, didTransitionTo: state)
    |             `- warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
 34 |             NotificationCenter.default.post(
 35 |                 name: HAConnectionState.didTransitionToStateNotification,
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:33:57: warning: capture of 'state' with non-sendable type 'HAConnectionState' in a '@Sendable' closure
 31 |     internal func notifyState() {
 32 |         callbackQueue.async { [self, state] in
 33 |             delegate?.connection(self, didTransitionTo: state)
    |                                                         `- warning: capture of 'state' with non-sendable type 'HAConnectionState' in a '@Sendable' closure
 34 |             NotificationCenter.default.post(
 35 |                 name: HAConnectionState.didTransitionToStateNotification,
/Users/admin/builder/spi-builder-workspace/Source/HAConnection.swift:14:13: note: consider making enum 'HAConnectionState' conform to the 'Sendable' protocol
 12 |
 13 | /// State of the connection
 14 | public enum HAConnectionState: Equatable {
    |             `- note: consider making enum 'HAConnectionState' conform to the 'Sendable' protocol
 15 |     /// Notification fired when state transitions occur
 16 |     ///
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:138:47: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
132 |     }
133 |
134 |     func performConnectionChange(_ block: @escaping () -> Void) {
    |                                    `- note: parameter 'block' is implicitly non-sendable
135 |         if Thread.isMainThread {
136 |             block()
137 |         } else {
138 |             DispatchQueue.main.async(execute: block)
    |                                               `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
139 |         }
140 |     }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:225:53: warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
223 |         send(request.request) { [workQueue, callbackQueue] result in
224 |             workQueue.async {
225 |                 let converted: Result<T, HAError> = result.flatMap { data in
    |                                                     `- warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
226 |                     do {
227 |                         let updated = try T(data: data)
/Users/admin/builder/spi-builder-workspace/Source/Data/HAData.swift:6:13: note: consider making enum 'HAData' conform to the 'Sendable' protocol
 4 | ///
 5 | /// The root-level information in either the `result` for individual requests or `event` for subscriptions.
 6 | public enum HAData: Equatable {
   |             `- note: consider making enum 'HAData' conform to the 'Sendable' protocol
 7 |     /// A dictionary response.
 8 |     /// - SeeAlso: `get(_:)`and associated methods
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:235:21: warning: capture of 'completion' with non-sendable type '(Result<T, HAError>) -> Void' in a '@Sendable' closure
233 |
234 |                 callbackQueue.async {
235 |                     completion(converted)
    |                     |- warning: capture of 'completion' with non-sendable type '(Result<T, HAError>) -> Void' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
236 |                 }
237 |             }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:235:21: warning: capture of 'completion' with non-sendable type '(Result<T, HAError>) -> Void' in a '@Sendable' closure
233 |
234 |                 callbackQueue.async {
235 |                     completion(converted)
    |                     |- warning: capture of 'completion' with non-sendable type '(Result<T, HAError>) -> Void' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
236 |                 }
237 |             }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:235:32: warning: capture of 'converted' with non-sendable type 'Result<T, HAError>' in a '@Sendable' closure
217 |
218 |     @discardableResult
219 |     func send<T>(
    |               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
220 |         _ request: HATypedRequest<T>,
221 |         completion: @escaping (Result<T, HAError>) -> Void
    :
233 |
234 |                 callbackQueue.async {
235 |                     completion(converted)
    |                                `- warning: capture of 'converted' with non-sendable type 'Result<T, HAError>' in a '@Sendable' closure
236 |                 }
237 |             }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:274:49: warning: capture of 'data' with non-sendable type 'HAData' in a '@Sendable' closure
272 |                 workQueue.async {
273 |                     do {
274 |                         let value = try T(data: data)
    |                                                 `- warning: capture of 'data' with non-sendable type 'HAData' in a '@Sendable' closure
275 |                         callbackQueue.async {
276 |                             handler(token, value)
/Users/admin/builder/spi-builder-workspace/Source/Data/HAData.swift:6:13: note: consider making enum 'HAData' conform to the 'Sendable' protocol
 4 | ///
 5 | /// The root-level information in either the `result` for individual requests or `event` for subscriptions.
 6 | public enum HAData: Equatable {
   |             `- note: consider making enum 'HAData' conform to the 'Sendable' protocol
 7 |     /// A dictionary response.
 8 |     /// - SeeAlso: `get(_:)`and associated methods
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:29: warning: capture of 'handler' with non-sendable type '(any HACancellable, T) -> Void' in a '@Sendable' closure
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                             |- warning: capture of 'handler' with non-sendable type '(any HACancellable, T) -> Void' in a '@Sendable' closure
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:37: warning: capture of 'token' with non-sendable type 'any HACancellable' in a '@Sendable' closure
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                                     `- warning: capture of 'token' with non-sendable type 'any HACancellable' in a '@Sendable' closure
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/HARequestToken.swift:4:17: note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
2 | ///
3 | /// You do not need to strongly retain this value. Requests are only cancelled explicitly.
4 | public protocol HACancellable {
  |                 `- note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
5 |     /// Cancel the request or subscription represented by this.
6 |     func cancel()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:29: warning: capture of 'handler' with non-sendable type '(any HACancellable, T) -> Void' in a '@Sendable' closure
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                             |- warning: capture of 'handler' with non-sendable type '(any HACancellable, T) -> Void' in a '@Sendable' closure
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:37: warning: capture of 'token' with non-sendable type 'any HACancellable' in a '@Sendable' closure
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                                     `- warning: capture of 'token' with non-sendable type 'any HACancellable' in a '@Sendable' closure
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/HARequestToken.swift:4:17: note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
2 | ///
3 | /// You do not need to strongly retain this value. Requests are only cancelled explicitly.
4 | public protocol HACancellable {
  |                 `- note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
5 |     /// Cancel the request or subscription represented by this.
6 |     func cancel()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:44: warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
259 |     }
260 |
261 |     private func commonSubscribe<T>(
    |                                  `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
262 |         to request: HATypedSubscription<T>,
263 |         allowConnecting: Bool = true,
    :
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                                            `- warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:338:30: warning: capture of 'request' with non-sendable type 'HARequest' in a '@Sendable' closure
336 |     ) {
337 |         workQueue.async { [connection] in
338 |             var dictionary = request.data
    |                              `- warning: capture of 'request' with non-sendable type 'HARequest' in a '@Sendable' closure
339 |             if let identifier = identifier {
340 |                 dictionary["id"] = identifier.rawValue
/Users/admin/builder/spi-builder-workspace/Source/Requests/HARequest.swift:4:15: note: consider making struct 'HARequest' conform to the 'Sendable' protocol
 2 |
 3 | /// A request, with data, to be issued
 4 | public struct HARequest {
   |               `- note: consider making struct 'HARequest' conform to the 'Sendable' protocol
 5 |     /// Create a request
 6 |     /// - Precondition: data is a JSON-encodable value. From `JSONSerialization` documentation:
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:352:13: warning: capture of 'connection' with non-sendable type 'HAWebSocket?' in a '@Sendable' closure
350 |             }
351 |
352 |             connection?.write(string: string)
    |             `- warning: capture of 'connection' with non-sendable type 'HAWebSocket?' in a '@Sendable' closure
353 |         }
354 |     }
/Users/admin/builder/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:13:22: note: class 'HAWebSocket' does not conform to the 'Sendable' protocol
11 | /// ``HAURLSessionWebSocketEngine``, backed by `URLSessionWebSocketTask`). It owns the engine,
12 | /// registers itself as the engine's delegate, and forwards transport events to its own delegate.
13 | internal final class HAWebSocket {
   |                      `- note: class 'HAWebSocket' does not conform to the 'Sendable' protocol
14 |     /// The request used to open the connection.
15 |     let request: URLRequest
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:381:25: warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
  3 | // NOTE: see HAConnection.swift for how to access these types
  4 |
  5 | internal class HAConnectionImpl: HAConnection {
    |                `- note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  6 |     weak var delegate: HAConnectionDelegate?
  7 |     var configuration: HAConnectionConfiguration
    :
379 |                 let task = urlSession.dataTask(with: httpRequest) { [self] data, response, error in
380 |                     if let response = response {
381 |                         responseController.didReceive(
    |                         `- warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
382 |                             for: identifier,
383 |                             // This badly-typed API will always return HTTPURLResponses to http/https endpoints.
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:13: warning: capture of 'connection' with non-sendable type 'HAWebSocket?' in a '@Sendable' closure
414 |         audioData.insert(sttBinaryHandlerId, at: 0)
415 |         workQueue.async { [connection] in
416 |             connection?.write(data: audioData) { [weak self] in
    |             `- warning: capture of 'connection' with non-sendable type 'HAWebSocket?' in a '@Sendable' closure
417 |                 guard let self else { return }
418 |                 self.responseController.didWrite()
/Users/admin/builder/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:13:22: note: class 'HAWebSocket' does not conform to the 'Sendable' protocol
11 | /// ``HAURLSessionWebSocketEngine``, backed by `URLSessionWebSocketTask`). It owns the engine,
12 | /// registers itself as the engine's delegate, and forwards transport events to its own delegate.
13 | internal final class HAWebSocket {
   |                      `- note: class 'HAWebSocket' does not conform to the 'Sendable' protocol
14 |     /// The request used to open the connection.
15 |     let request: URLRequest
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:56: warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
  3 | // NOTE: see HAConnection.swift for how to access these types
  4 |
  5 | internal class HAConnectionImpl: HAConnection {
    |                `- note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  6 |     weak var delegate: HAConnectionDelegate?
  7 |     var configuration: HAConnectionConfiguration
    :
414 |         audioData.insert(sttBinaryHandlerId, at: 0)
415 |         workQueue.async { [connection] in
416 |             connection?.write(data: audioData) { [weak self] in
    |                                                        `- warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
417 |                 guard let self else { return }
418 |                 self.responseController.didWrite()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:37: warning: reference to captured var 'audioData' in concurrently-executing code
414 |         audioData.insert(sttBinaryHandlerId, at: 0)
415 |         workQueue.async { [connection] in
416 |             connection?.write(data: audioData) { [weak self] in
    |                                     `- warning: reference to captured var 'audioData' in concurrently-executing code
417 |                 guard let self else { return }
418 |                 self.responseController.didWrite()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:421:25: warning: capture of 'request' with non-sendable type 'HARequestInvocationSingle' in a '@Sendable' closure
419 |                 if let identifier, let request = self.requestController.single(for: identifier) {
420 |                     callbackQueue.async {
421 |                         request.resolve(.success(.empty))
    |                         `- warning: capture of 'request' with non-sendable type 'HARequestInvocationSingle' in a '@Sendable' closure
422 |                     }
423 |                     requestController.clear(invocation: request)
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSingle.swift:1:16: note: class 'HARequestInvocationSingle' does not conform to the 'Sendable' protocol
 1 | internal class HARequestInvocationSingle: HARequestInvocation {
   |                `- note: class 'HARequestInvocationSingle' does not conform to the 'Sendable' protocol
 2 |     private var completion: HAResetLock<HAConnection.RequestCompletion>
 3 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:463:17: warning: sending 'handler' risks causing data races; this is an error in the Swift 6 language mode
461 |         send(.init(type: .ping, data: [:])) { result in
462 |             DispatchQueue.main.async {
463 |                 handler(result.map { _ in () }.mapError { $0 })
    |                 |- warning: sending 'handler' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'handler' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
464 |             }
465 |         }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:463:25: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
461 |         send(.init(type: .ping, data: [:])) { result in
462 |             DispatchQueue.main.async {
463 |                 handler(result.map { _ in () }.mapError { $0 })
    |                         |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'result' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
464 |             }
465 |         }
[67/79] Compiling HAKit HAConnectionImpl.swift
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:48:21: warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in a '@Sendable' closure
46 |             if let subscription = requestController.subscription(for: identifier) {
47 |                 callbackQueue.async { [self] in
48 |                     subscription.invoke(token: HACancellableImpl { [requestController] in
   |                     `- warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in a '@Sendable' closure
49 |                         requestController.cancel(subscription)
50 |                     }, event: data)
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSubscription.swift:1:16: note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 1 | internal class HARequestInvocationSubscription: HARequestInvocation {
   |                `- note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 2 |     private var handler: HAResetLock<HAConnection.SubscriptionHandler>
 3 |     private var initiated: HAResetLock<HAConnection.SubscriptionInitiatedHandler>
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:48:69: warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
46 |             if let subscription = requestController.subscription(for: identifier) {
47 |                 callbackQueue.async { [self] in
48 |                     subscription.invoke(token: HACancellableImpl { [requestController] in
   |                                                                     `- warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
49 |                         requestController.cancel(subscription)
50 |                     }, event: data)
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:5:16: note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  3 | // NOTE: see HAConnection.swift for how to access these types
  4 |
  5 | internal class HAConnectionImpl: HAConnection {
    |                `- note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  6 |     weak var delegate: HAConnectionDelegate?
  7 |     var configuration: HAConnectionConfiguration
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:50:31: warning: capture of 'data' with non-sendable type 'HAData' in a '@Sendable' closure
48 |                     subscription.invoke(token: HACancellableImpl { [requestController] in
49 |                         requestController.cancel(subscription)
50 |                     }, event: data)
   |                               `- warning: capture of 'data' with non-sendable type 'HAData' in a '@Sendable' closure
51 |                 }
52 |             } else {
/Users/admin/builder/spi-builder-workspace/Source/Data/HAData.swift:6:13: note: consider making enum 'HAData' conform to the 'Sendable' protocol
 4 | ///
 5 | /// The root-level information in either the `result` for individual requests or `event` for subscriptions.
 6 | public enum HAData: Equatable {
   |             `- note: consider making enum 'HAData' conform to the 'Sendable' protocol
 7 |     /// A dictionary response.
 8 |     /// - SeeAlso: `get(_:)`and associated methods
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:49:50: warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in an isolated closure; this is an error in the Swift 6 language mode
47 |                 callbackQueue.async { [self] in
48 |                     subscription.invoke(token: HACancellableImpl { [requestController] in
49 |                         requestController.cancel(subscription)
   |                                                  `- warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in an isolated closure; this is an error in the Swift 6 language mode
50 |                     }, event: data)
51 |                 }
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSubscription.swift:1:16: note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 1 | internal class HARequestInvocationSubscription: HARequestInvocation {
   |                `- note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 2 |     private var handler: HAResetLock<HAConnection.SubscriptionHandler>
 3 |     private var initiated: HAResetLock<HAConnection.SubscriptionInitiatedHandler>
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:58:21: warning: capture of 'request' with non-sendable type 'HARequestInvocationSingle' in a '@Sendable' closure
56 |             if let request = requestController.single(for: identifier) {
57 |                 callbackQueue.async {
58 |                     request.resolve(result)
   |                     `- warning: capture of 'request' with non-sendable type 'HARequestInvocationSingle' in a '@Sendable' closure
59 |                 }
60 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSingle.swift:1:16: note: class 'HARequestInvocationSingle' does not conform to the 'Sendable' protocol
 1 | internal class HARequestInvocationSingle: HARequestInvocation {
   |                `- note: class 'HARequestInvocationSingle' does not conform to the 'Sendable' protocol
 2 |     private var completion: HAResetLock<HAConnection.RequestCompletion>
 3 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:58:37: warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
56 |             if let request = requestController.single(for: identifier) {
57 |                 callbackQueue.async {
58 |                     request.resolve(result)
   |                                     `- warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
59 |                 }
60 |
/Users/admin/builder/spi-builder-workspace/Source/Data/HAData.swift:6:13: note: consider making enum 'HAData' conform to the 'Sendable' protocol
 4 | ///
 5 | /// The root-level information in either the `result` for individual requests or `event` for subscriptions.
 6 | public enum HAData: Equatable {
   |             `- note: consider making enum 'HAData' conform to the 'Sendable' protocol
 7 |     /// A dictionary response.
 8 |     /// - SeeAlso: `get(_:)`and associated methods
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:64:21: warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in a '@Sendable' closure
62 |             } else if let subscription = requestController.subscription(for: identifier) {
63 |                 callbackQueue.async {
64 |                     subscription.resolve(result)
   |                     `- warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in a '@Sendable' closure
65 |                 }
66 |             } else {
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSubscription.swift:1:16: note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 1 | internal class HARequestInvocationSubscription: HARequestInvocation {
   |                `- note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 2 |     private var handler: HAResetLock<HAConnection.SubscriptionHandler>
 3 |     private var initiated: HAResetLock<HAConnection.SubscriptionInitiatedHandler>
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:64:42: warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
62 |             } else if let subscription = requestController.subscription(for: identifier) {
63 |                 callbackQueue.async {
64 |                     subscription.resolve(result)
   |                                          `- warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
65 |                 }
66 |             } else {
/Users/admin/builder/spi-builder-workspace/Source/Data/HAData.swift:6:13: note: consider making enum 'HAData' conform to the 'Sendable' protocol
 4 | ///
 5 | /// The root-level information in either the `result` for individual requests or `event` for subscriptions.
 6 | public enum HAData: Equatable {
   |             `- note: consider making enum 'HAData' conform to the 'Sendable' protocol
 7 |     /// A dictionary response.
 8 |     /// - SeeAlso: `get(_:)`and associated methods
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:33:13: warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
  3 | // NOTE: see HAConnection.swift for how to access these types
  4 |
  5 | internal class HAConnectionImpl: HAConnection {
    |                `- note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  6 |     weak var delegate: HAConnectionDelegate?
  7 |     var configuration: HAConnectionConfiguration
    :
 31 |     internal func notifyState() {
 32 |         callbackQueue.async { [self, state] in
 33 |             delegate?.connection(self, didTransitionTo: state)
    |             `- warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
 34 |             NotificationCenter.default.post(
 35 |                 name: HAConnectionState.didTransitionToStateNotification,
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:33:57: warning: capture of 'state' with non-sendable type 'HAConnectionState' in a '@Sendable' closure
 31 |     internal func notifyState() {
 32 |         callbackQueue.async { [self, state] in
 33 |             delegate?.connection(self, didTransitionTo: state)
    |                                                         `- warning: capture of 'state' with non-sendable type 'HAConnectionState' in a '@Sendable' closure
 34 |             NotificationCenter.default.post(
 35 |                 name: HAConnectionState.didTransitionToStateNotification,
/Users/admin/builder/spi-builder-workspace/Source/HAConnection.swift:14:13: note: consider making enum 'HAConnectionState' conform to the 'Sendable' protocol
 12 |
 13 | /// State of the connection
 14 | public enum HAConnectionState: Equatable {
    |             `- note: consider making enum 'HAConnectionState' conform to the 'Sendable' protocol
 15 |     /// Notification fired when state transitions occur
 16 |     ///
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:138:47: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
132 |     }
133 |
134 |     func performConnectionChange(_ block: @escaping () -> Void) {
    |                                    `- note: parameter 'block' is implicitly non-sendable
135 |         if Thread.isMainThread {
136 |             block()
137 |         } else {
138 |             DispatchQueue.main.async(execute: block)
    |                                               `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
139 |         }
140 |     }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:225:53: warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
223 |         send(request.request) { [workQueue, callbackQueue] result in
224 |             workQueue.async {
225 |                 let converted: Result<T, HAError> = result.flatMap { data in
    |                                                     `- warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
226 |                     do {
227 |                         let updated = try T(data: data)
/Users/admin/builder/spi-builder-workspace/Source/Data/HAData.swift:6:13: note: consider making enum 'HAData' conform to the 'Sendable' protocol
 4 | ///
 5 | /// The root-level information in either the `result` for individual requests or `event` for subscriptions.
 6 | public enum HAData: Equatable {
   |             `- note: consider making enum 'HAData' conform to the 'Sendable' protocol
 7 |     /// A dictionary response.
 8 |     /// - SeeAlso: `get(_:)`and associated methods
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:235:21: warning: capture of 'completion' with non-sendable type '(Result<T, HAError>) -> Void' in a '@Sendable' closure
233 |
234 |                 callbackQueue.async {
235 |                     completion(converted)
    |                     |- warning: capture of 'completion' with non-sendable type '(Result<T, HAError>) -> Void' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
236 |                 }
237 |             }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:235:21: warning: capture of 'completion' with non-sendable type '(Result<T, HAError>) -> Void' in a '@Sendable' closure
233 |
234 |                 callbackQueue.async {
235 |                     completion(converted)
    |                     |- warning: capture of 'completion' with non-sendable type '(Result<T, HAError>) -> Void' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
236 |                 }
237 |             }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:235:32: warning: capture of 'converted' with non-sendable type 'Result<T, HAError>' in a '@Sendable' closure
217 |
218 |     @discardableResult
219 |     func send<T>(
    |               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
220 |         _ request: HATypedRequest<T>,
221 |         completion: @escaping (Result<T, HAError>) -> Void
    :
233 |
234 |                 callbackQueue.async {
235 |                     completion(converted)
    |                                `- warning: capture of 'converted' with non-sendable type 'Result<T, HAError>' in a '@Sendable' closure
236 |                 }
237 |             }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:274:49: warning: capture of 'data' with non-sendable type 'HAData' in a '@Sendable' closure
272 |                 workQueue.async {
273 |                     do {
274 |                         let value = try T(data: data)
    |                                                 `- warning: capture of 'data' with non-sendable type 'HAData' in a '@Sendable' closure
275 |                         callbackQueue.async {
276 |                             handler(token, value)
/Users/admin/builder/spi-builder-workspace/Source/Data/HAData.swift:6:13: note: consider making enum 'HAData' conform to the 'Sendable' protocol
 4 | ///
 5 | /// The root-level information in either the `result` for individual requests or `event` for subscriptions.
 6 | public enum HAData: Equatable {
   |             `- note: consider making enum 'HAData' conform to the 'Sendable' protocol
 7 |     /// A dictionary response.
 8 |     /// - SeeAlso: `get(_:)`and associated methods
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:29: warning: capture of 'handler' with non-sendable type '(any HACancellable, T) -> Void' in a '@Sendable' closure
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                             |- warning: capture of 'handler' with non-sendable type '(any HACancellable, T) -> Void' in a '@Sendable' closure
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:37: warning: capture of 'token' with non-sendable type 'any HACancellable' in a '@Sendable' closure
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                                     `- warning: capture of 'token' with non-sendable type 'any HACancellable' in a '@Sendable' closure
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/HARequestToken.swift:4:17: note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
2 | ///
3 | /// You do not need to strongly retain this value. Requests are only cancelled explicitly.
4 | public protocol HACancellable {
  |                 `- note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
5 |     /// Cancel the request or subscription represented by this.
6 |     func cancel()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:29: warning: capture of 'handler' with non-sendable type '(any HACancellable, T) -> Void' in a '@Sendable' closure
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                             |- warning: capture of 'handler' with non-sendable type '(any HACancellable, T) -> Void' in a '@Sendable' closure
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:37: warning: capture of 'token' with non-sendable type 'any HACancellable' in a '@Sendable' closure
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                                     `- warning: capture of 'token' with non-sendable type 'any HACancellable' in a '@Sendable' closure
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/HARequestToken.swift:4:17: note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
2 | ///
3 | /// You do not need to strongly retain this value. Requests are only cancelled explicitly.
4 | public protocol HACancellable {
  |                 `- note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
5 |     /// Cancel the request or subscription represented by this.
6 |     func cancel()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:44: warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
259 |     }
260 |
261 |     private func commonSubscribe<T>(
    |                                  `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
262 |         to request: HATypedSubscription<T>,
263 |         allowConnecting: Bool = true,
    :
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                                            `- warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:338:30: warning: capture of 'request' with non-sendable type 'HARequest' in a '@Sendable' closure
336 |     ) {
337 |         workQueue.async { [connection] in
338 |             var dictionary = request.data
    |                              `- warning: capture of 'request' with non-sendable type 'HARequest' in a '@Sendable' closure
339 |             if let identifier = identifier {
340 |                 dictionary["id"] = identifier.rawValue
/Users/admin/builder/spi-builder-workspace/Source/Requests/HARequest.swift:4:15: note: consider making struct 'HARequest' conform to the 'Sendable' protocol
 2 |
 3 | /// A request, with data, to be issued
 4 | public struct HARequest {
   |               `- note: consider making struct 'HARequest' conform to the 'Sendable' protocol
 5 |     /// Create a request
 6 |     /// - Precondition: data is a JSON-encodable value. From `JSONSerialization` documentation:
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:352:13: warning: capture of 'connection' with non-sendable type 'HAWebSocket?' in a '@Sendable' closure
350 |             }
351 |
352 |             connection?.write(string: string)
    |             `- warning: capture of 'connection' with non-sendable type 'HAWebSocket?' in a '@Sendable' closure
353 |         }
354 |     }
/Users/admin/builder/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:13:22: note: class 'HAWebSocket' does not conform to the 'Sendable' protocol
11 | /// ``HAURLSessionWebSocketEngine``, backed by `URLSessionWebSocketTask`). It owns the engine,
12 | /// registers itself as the engine's delegate, and forwards transport events to its own delegate.
13 | internal final class HAWebSocket {
   |                      `- note: class 'HAWebSocket' does not conform to the 'Sendable' protocol
14 |     /// The request used to open the connection.
15 |     let request: URLRequest
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:381:25: warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
  3 | // NOTE: see HAConnection.swift for how to access these types
  4 |
  5 | internal class HAConnectionImpl: HAConnection {
    |                `- note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  6 |     weak var delegate: HAConnectionDelegate?
  7 |     var configuration: HAConnectionConfiguration
    :
379 |                 let task = urlSession.dataTask(with: httpRequest) { [self] data, response, error in
380 |                     if let response = response {
381 |                         responseController.didReceive(
    |                         `- warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
382 |                             for: identifier,
383 |                             // This badly-typed API will always return HTTPURLResponses to http/https endpoints.
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:13: warning: capture of 'connection' with non-sendable type 'HAWebSocket?' in a '@Sendable' closure
414 |         audioData.insert(sttBinaryHandlerId, at: 0)
415 |         workQueue.async { [connection] in
416 |             connection?.write(data: audioData) { [weak self] in
    |             `- warning: capture of 'connection' with non-sendable type 'HAWebSocket?' in a '@Sendable' closure
417 |                 guard let self else { return }
418 |                 self.responseController.didWrite()
/Users/admin/builder/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:13:22: note: class 'HAWebSocket' does not conform to the 'Sendable' protocol
11 | /// ``HAURLSessionWebSocketEngine``, backed by `URLSessionWebSocketTask`). It owns the engine,
12 | /// registers itself as the engine's delegate, and forwards transport events to its own delegate.
13 | internal final class HAWebSocket {
   |                      `- note: class 'HAWebSocket' does not conform to the 'Sendable' protocol
14 |     /// The request used to open the connection.
15 |     let request: URLRequest
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:56: warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
  3 | // NOTE: see HAConnection.swift for how to access these types
  4 |
  5 | internal class HAConnectionImpl: HAConnection {
    |                `- note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  6 |     weak var delegate: HAConnectionDelegate?
  7 |     var configuration: HAConnectionConfiguration
    :
414 |         audioData.insert(sttBinaryHandlerId, at: 0)
415 |         workQueue.async { [connection] in
416 |             connection?.write(data: audioData) { [weak self] in
    |                                                        `- warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
417 |                 guard let self else { return }
418 |                 self.responseController.didWrite()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:37: warning: reference to captured var 'audioData' in concurrently-executing code
414 |         audioData.insert(sttBinaryHandlerId, at: 0)
415 |         workQueue.async { [connection] in
416 |             connection?.write(data: audioData) { [weak self] in
    |                                     `- warning: reference to captured var 'audioData' in concurrently-executing code
417 |                 guard let self else { return }
418 |                 self.responseController.didWrite()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:421:25: warning: capture of 'request' with non-sendable type 'HARequestInvocationSingle' in a '@Sendable' closure
419 |                 if let identifier, let request = self.requestController.single(for: identifier) {
420 |                     callbackQueue.async {
421 |                         request.resolve(.success(.empty))
    |                         `- warning: capture of 'request' with non-sendable type 'HARequestInvocationSingle' in a '@Sendable' closure
422 |                     }
423 |                     requestController.clear(invocation: request)
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSingle.swift:1:16: note: class 'HARequestInvocationSingle' does not conform to the 'Sendable' protocol
 1 | internal class HARequestInvocationSingle: HARequestInvocation {
   |                `- note: class 'HARequestInvocationSingle' does not conform to the 'Sendable' protocol
 2 |     private var completion: HAResetLock<HAConnection.RequestCompletion>
 3 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:463:17: warning: sending 'handler' risks causing data races; this is an error in the Swift 6 language mode
461 |         send(.init(type: .ping, data: [:])) { result in
462 |             DispatchQueue.main.async {
463 |                 handler(result.map { _ in () }.mapError { $0 })
    |                 |- warning: sending 'handler' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'handler' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
464 |             }
465 |         }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:463:25: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
461 |         send(.init(type: .ping, data: [:])) { result in
462 |             DispatchQueue.main.async {
463 |                 handler(result.map { _ in () }.mapError { $0 })
    |                         |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'result' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
464 |             }
465 |         }
[68/79] Compiling HAKit HAProtected.swift
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:48:21: warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in a '@Sendable' closure
46 |             if let subscription = requestController.subscription(for: identifier) {
47 |                 callbackQueue.async { [self] in
48 |                     subscription.invoke(token: HACancellableImpl { [requestController] in
   |                     `- warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in a '@Sendable' closure
49 |                         requestController.cancel(subscription)
50 |                     }, event: data)
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSubscription.swift:1:16: note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 1 | internal class HARequestInvocationSubscription: HARequestInvocation {
   |                `- note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 2 |     private var handler: HAResetLock<HAConnection.SubscriptionHandler>
 3 |     private var initiated: HAResetLock<HAConnection.SubscriptionInitiatedHandler>
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:48:69: warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
46 |             if let subscription = requestController.subscription(for: identifier) {
47 |                 callbackQueue.async { [self] in
48 |                     subscription.invoke(token: HACancellableImpl { [requestController] in
   |                                                                     `- warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
49 |                         requestController.cancel(subscription)
50 |                     }, event: data)
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:5:16: note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  3 | // NOTE: see HAConnection.swift for how to access these types
  4 |
  5 | internal class HAConnectionImpl: HAConnection {
    |                `- note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  6 |     weak var delegate: HAConnectionDelegate?
  7 |     var configuration: HAConnectionConfiguration
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:50:31: warning: capture of 'data' with non-sendable type 'HAData' in a '@Sendable' closure
48 |                     subscription.invoke(token: HACancellableImpl { [requestController] in
49 |                         requestController.cancel(subscription)
50 |                     }, event: data)
   |                               `- warning: capture of 'data' with non-sendable type 'HAData' in a '@Sendable' closure
51 |                 }
52 |             } else {
/Users/admin/builder/spi-builder-workspace/Source/Data/HAData.swift:6:13: note: consider making enum 'HAData' conform to the 'Sendable' protocol
 4 | ///
 5 | /// The root-level information in either the `result` for individual requests or `event` for subscriptions.
 6 | public enum HAData: Equatable {
   |             `- note: consider making enum 'HAData' conform to the 'Sendable' protocol
 7 |     /// A dictionary response.
 8 |     /// - SeeAlso: `get(_:)`and associated methods
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:49:50: warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in an isolated closure; this is an error in the Swift 6 language mode
47 |                 callbackQueue.async { [self] in
48 |                     subscription.invoke(token: HACancellableImpl { [requestController] in
49 |                         requestController.cancel(subscription)
   |                                                  `- warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in an isolated closure; this is an error in the Swift 6 language mode
50 |                     }, event: data)
51 |                 }
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSubscription.swift:1:16: note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 1 | internal class HARequestInvocationSubscription: HARequestInvocation {
   |                `- note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 2 |     private var handler: HAResetLock<HAConnection.SubscriptionHandler>
 3 |     private var initiated: HAResetLock<HAConnection.SubscriptionInitiatedHandler>
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:58:21: warning: capture of 'request' with non-sendable type 'HARequestInvocationSingle' in a '@Sendable' closure
56 |             if let request = requestController.single(for: identifier) {
57 |                 callbackQueue.async {
58 |                     request.resolve(result)
   |                     `- warning: capture of 'request' with non-sendable type 'HARequestInvocationSingle' in a '@Sendable' closure
59 |                 }
60 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSingle.swift:1:16: note: class 'HARequestInvocationSingle' does not conform to the 'Sendable' protocol
 1 | internal class HARequestInvocationSingle: HARequestInvocation {
   |                `- note: class 'HARequestInvocationSingle' does not conform to the 'Sendable' protocol
 2 |     private var completion: HAResetLock<HAConnection.RequestCompletion>
 3 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:58:37: warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
56 |             if let request = requestController.single(for: identifier) {
57 |                 callbackQueue.async {
58 |                     request.resolve(result)
   |                                     `- warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
59 |                 }
60 |
/Users/admin/builder/spi-builder-workspace/Source/Data/HAData.swift:6:13: note: consider making enum 'HAData' conform to the 'Sendable' protocol
 4 | ///
 5 | /// The root-level information in either the `result` for individual requests or `event` for subscriptions.
 6 | public enum HAData: Equatable {
   |             `- note: consider making enum 'HAData' conform to the 'Sendable' protocol
 7 |     /// A dictionary response.
 8 |     /// - SeeAlso: `get(_:)`and associated methods
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:64:21: warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in a '@Sendable' closure
62 |             } else if let subscription = requestController.subscription(for: identifier) {
63 |                 callbackQueue.async {
64 |                     subscription.resolve(result)
   |                     `- warning: capture of 'subscription' with non-sendable type 'HARequestInvocationSubscription' in a '@Sendable' closure
65 |                 }
66 |             } else {
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSubscription.swift:1:16: note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 1 | internal class HARequestInvocationSubscription: HARequestInvocation {
   |                `- note: class 'HARequestInvocationSubscription' does not conform to the 'Sendable' protocol
 2 |     private var handler: HAResetLock<HAConnection.SubscriptionHandler>
 3 |     private var initiated: HAResetLock<HAConnection.SubscriptionInitiatedHandler>
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl+Responses.swift:64:42: warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
62 |             } else if let subscription = requestController.subscription(for: identifier) {
63 |                 callbackQueue.async {
64 |                     subscription.resolve(result)
   |                                          `- warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
65 |                 }
66 |             } else {
/Users/admin/builder/spi-builder-workspace/Source/Data/HAData.swift:6:13: note: consider making enum 'HAData' conform to the 'Sendable' protocol
 4 | ///
 5 | /// The root-level information in either the `result` for individual requests or `event` for subscriptions.
 6 | public enum HAData: Equatable {
   |             `- note: consider making enum 'HAData' conform to the 'Sendable' protocol
 7 |     /// A dictionary response.
 8 |     /// - SeeAlso: `get(_:)`and associated methods
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:33:13: warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
  3 | // NOTE: see HAConnection.swift for how to access these types
  4 |
  5 | internal class HAConnectionImpl: HAConnection {
    |                `- note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  6 |     weak var delegate: HAConnectionDelegate?
  7 |     var configuration: HAConnectionConfiguration
    :
 31 |     internal func notifyState() {
 32 |         callbackQueue.async { [self, state] in
 33 |             delegate?.connection(self, didTransitionTo: state)
    |             `- warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
 34 |             NotificationCenter.default.post(
 35 |                 name: HAConnectionState.didTransitionToStateNotification,
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:33:57: warning: capture of 'state' with non-sendable type 'HAConnectionState' in a '@Sendable' closure
 31 |     internal func notifyState() {
 32 |         callbackQueue.async { [self, state] in
 33 |             delegate?.connection(self, didTransitionTo: state)
    |                                                         `- warning: capture of 'state' with non-sendable type 'HAConnectionState' in a '@Sendable' closure
 34 |             NotificationCenter.default.post(
 35 |                 name: HAConnectionState.didTransitionToStateNotification,
/Users/admin/builder/spi-builder-workspace/Source/HAConnection.swift:14:13: note: consider making enum 'HAConnectionState' conform to the 'Sendable' protocol
 12 |
 13 | /// State of the connection
 14 | public enum HAConnectionState: Equatable {
    |             `- note: consider making enum 'HAConnectionState' conform to the 'Sendable' protocol
 15 |     /// Notification fired when state transitions occur
 16 |     ///
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:138:47: warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
132 |     }
133 |
134 |     func performConnectionChange(_ block: @escaping () -> Void) {
    |                                    `- note: parameter 'block' is implicitly non-sendable
135 |         if Thread.isMainThread {
136 |             block()
137 |         } else {
138 |             DispatchQueue.main.async(execute: block)
    |                                               `- warning: passing non-sendable parameter 'block' to function expecting a @Sendable closure
139 |         }
140 |     }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:225:53: warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
223 |         send(request.request) { [workQueue, callbackQueue] result in
224 |             workQueue.async {
225 |                 let converted: Result<T, HAError> = result.flatMap { data in
    |                                                     `- warning: capture of 'result' with non-sendable type 'Result<HAData, HAError>' in a '@Sendable' closure
226 |                     do {
227 |                         let updated = try T(data: data)
/Users/admin/builder/spi-builder-workspace/Source/Data/HAData.swift:6:13: note: consider making enum 'HAData' conform to the 'Sendable' protocol
 4 | ///
 5 | /// The root-level information in either the `result` for individual requests or `event` for subscriptions.
 6 | public enum HAData: Equatable {
   |             `- note: consider making enum 'HAData' conform to the 'Sendable' protocol
 7 |     /// A dictionary response.
 8 |     /// - SeeAlso: `get(_:)`and associated methods
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:235:21: warning: capture of 'completion' with non-sendable type '(Result<T, HAError>) -> Void' in a '@Sendable' closure
233 |
234 |                 callbackQueue.async {
235 |                     completion(converted)
    |                     |- warning: capture of 'completion' with non-sendable type '(Result<T, HAError>) -> Void' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
236 |                 }
237 |             }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:235:21: warning: capture of 'completion' with non-sendable type '(Result<T, HAError>) -> Void' in a '@Sendable' closure
233 |
234 |                 callbackQueue.async {
235 |                     completion(converted)
    |                     |- warning: capture of 'completion' with non-sendable type '(Result<T, HAError>) -> Void' in a '@Sendable' closure
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
236 |                 }
237 |             }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:235:32: warning: capture of 'converted' with non-sendable type 'Result<T, HAError>' in a '@Sendable' closure
217 |
218 |     @discardableResult
219 |     func send<T>(
    |               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
220 |         _ request: HATypedRequest<T>,
221 |         completion: @escaping (Result<T, HAError>) -> Void
    :
233 |
234 |                 callbackQueue.async {
235 |                     completion(converted)
    |                                `- warning: capture of 'converted' with non-sendable type 'Result<T, HAError>' in a '@Sendable' closure
236 |                 }
237 |             }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:274:49: warning: capture of 'data' with non-sendable type 'HAData' in a '@Sendable' closure
272 |                 workQueue.async {
273 |                     do {
274 |                         let value = try T(data: data)
    |                                                 `- warning: capture of 'data' with non-sendable type 'HAData' in a '@Sendable' closure
275 |                         callbackQueue.async {
276 |                             handler(token, value)
/Users/admin/builder/spi-builder-workspace/Source/Data/HAData.swift:6:13: note: consider making enum 'HAData' conform to the 'Sendable' protocol
 4 | ///
 5 | /// The root-level information in either the `result` for individual requests or `event` for subscriptions.
 6 | public enum HAData: Equatable {
   |             `- note: consider making enum 'HAData' conform to the 'Sendable' protocol
 7 |     /// A dictionary response.
 8 |     /// - SeeAlso: `get(_:)`and associated methods
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:29: warning: capture of 'handler' with non-sendable type '(any HACancellable, T) -> Void' in a '@Sendable' closure
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                             |- warning: capture of 'handler' with non-sendable type '(any HACancellable, T) -> Void' in a '@Sendable' closure
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:37: warning: capture of 'token' with non-sendable type 'any HACancellable' in a '@Sendable' closure
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                                     `- warning: capture of 'token' with non-sendable type 'any HACancellable' in a '@Sendable' closure
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/HARequestToken.swift:4:17: note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
2 | ///
3 | /// You do not need to strongly retain this value. Requests are only cancelled explicitly.
4 | public protocol HACancellable {
  |                 `- note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
5 |     /// Cancel the request or subscription represented by this.
6 |     func cancel()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:29: warning: capture of 'handler' with non-sendable type '(any HACancellable, T) -> Void' in a '@Sendable' closure
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                             |- warning: capture of 'handler' with non-sendable type '(any HACancellable, T) -> Void' in a '@Sendable' closure
    |                             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:37: warning: capture of 'token' with non-sendable type 'any HACancellable' in a '@Sendable' closure
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                                     `- warning: capture of 'token' with non-sendable type 'any HACancellable' in a '@Sendable' closure
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/HARequestToken.swift:4:17: note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
2 | ///
3 | /// You do not need to strongly retain this value. Requests are only cancelled explicitly.
4 | public protocol HACancellable {
  |                 `- note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
5 |     /// Cancel the request or subscription represented by this.
6 |     func cancel()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:276:44: warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
259 |     }
260 |
261 |     private func commonSubscribe<T>(
    |                                  `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
262 |         to request: HATypedSubscription<T>,
263 |         allowConnecting: Bool = true,
    :
274 |                         let value = try T(data: data)
275 |                         callbackQueue.async {
276 |                             handler(token, value)
    |                                            `- warning: capture of 'value' with non-sendable type 'T' in a '@Sendable' closure
277 |                         }
278 |                     } catch {
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:338:30: warning: capture of 'request' with non-sendable type 'HARequest' in a '@Sendable' closure
336 |     ) {
337 |         workQueue.async { [connection] in
338 |             var dictionary = request.data
    |                              `- warning: capture of 'request' with non-sendable type 'HARequest' in a '@Sendable' closure
339 |             if let identifier = identifier {
340 |                 dictionary["id"] = identifier.rawValue
/Users/admin/builder/spi-builder-workspace/Source/Requests/HARequest.swift:4:15: note: consider making struct 'HARequest' conform to the 'Sendable' protocol
 2 |
 3 | /// A request, with data, to be issued
 4 | public struct HARequest {
   |               `- note: consider making struct 'HARequest' conform to the 'Sendable' protocol
 5 |     /// Create a request
 6 |     /// - Precondition: data is a JSON-encodable value. From `JSONSerialization` documentation:
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:352:13: warning: capture of 'connection' with non-sendable type 'HAWebSocket?' in a '@Sendable' closure
350 |             }
351 |
352 |             connection?.write(string: string)
    |             `- warning: capture of 'connection' with non-sendable type 'HAWebSocket?' in a '@Sendable' closure
353 |         }
354 |     }
/Users/admin/builder/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:13:22: note: class 'HAWebSocket' does not conform to the 'Sendable' protocol
11 | /// ``HAURLSessionWebSocketEngine``, backed by `URLSessionWebSocketTask`). It owns the engine,
12 | /// registers itself as the engine's delegate, and forwards transport events to its own delegate.
13 | internal final class HAWebSocket {
   |                      `- note: class 'HAWebSocket' does not conform to the 'Sendable' protocol
14 |     /// The request used to open the connection.
15 |     let request: URLRequest
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:381:25: warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
  3 | // NOTE: see HAConnection.swift for how to access these types
  4 |
  5 | internal class HAConnectionImpl: HAConnection {
    |                `- note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  6 |     weak var delegate: HAConnectionDelegate?
  7 |     var configuration: HAConnectionConfiguration
    :
379 |                 let task = urlSession.dataTask(with: httpRequest) { [self] data, response, error in
380 |                     if let response = response {
381 |                         responseController.didReceive(
    |                         `- warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
382 |                             for: identifier,
383 |                             // This badly-typed API will always return HTTPURLResponses to http/https endpoints.
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:13: warning: capture of 'connection' with non-sendable type 'HAWebSocket?' in a '@Sendable' closure
414 |         audioData.insert(sttBinaryHandlerId, at: 0)
415 |         workQueue.async { [connection] in
416 |             connection?.write(data: audioData) { [weak self] in
    |             `- warning: capture of 'connection' with non-sendable type 'HAWebSocket?' in a '@Sendable' closure
417 |                 guard let self else { return }
418 |                 self.responseController.didWrite()
/Users/admin/builder/spi-builder-workspace/Source/Internal/WebSocket/HAWebSocket.swift:13:22: note: class 'HAWebSocket' does not conform to the 'Sendable' protocol
11 | /// ``HAURLSessionWebSocketEngine``, backed by `URLSessionWebSocketTask`). It owns the engine,
12 | /// registers itself as the engine's delegate, and forwards transport events to its own delegate.
13 | internal final class HAWebSocket {
   |                      `- note: class 'HAWebSocket' does not conform to the 'Sendable' protocol
14 |     /// The request used to open the connection.
15 |     let request: URLRequest
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:56: warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
  3 | // NOTE: see HAConnection.swift for how to access these types
  4 |
  5 | internal class HAConnectionImpl: HAConnection {
    |                `- note: class 'HAConnectionImpl' does not conform to the 'Sendable' protocol
  6 |     weak var delegate: HAConnectionDelegate?
  7 |     var configuration: HAConnectionConfiguration
    :
414 |         audioData.insert(sttBinaryHandlerId, at: 0)
415 |         workQueue.async { [connection] in
416 |             connection?.write(data: audioData) { [weak self] in
    |                                                        `- warning: capture of 'self' with non-sendable type 'HAConnectionImpl' in a '@Sendable' closure
417 |                 guard let self else { return }
418 |                 self.responseController.didWrite()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:416:37: warning: reference to captured var 'audioData' in concurrently-executing code
414 |         audioData.insert(sttBinaryHandlerId, at: 0)
415 |         workQueue.async { [connection] in
416 |             connection?.write(data: audioData) { [weak self] in
    |                                     `- warning: reference to captured var 'audioData' in concurrently-executing code
417 |                 guard let self else { return }
418 |                 self.responseController.didWrite()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:421:25: warning: capture of 'request' with non-sendable type 'HARequestInvocationSingle' in a '@Sendable' closure
419 |                 if let identifier, let request = self.requestController.single(for: identifier) {
420 |                     callbackQueue.async {
421 |                         request.resolve(.success(.empty))
    |                         `- warning: capture of 'request' with non-sendable type 'HARequestInvocationSingle' in a '@Sendable' closure
422 |                     }
423 |                     requestController.clear(invocation: request)
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestInvocationSingle.swift:1:16: note: class 'HARequestInvocationSingle' does not conform to the 'Sendable' protocol
 1 | internal class HARequestInvocationSingle: HARequestInvocation {
   |                `- note: class 'HARequestInvocationSingle' does not conform to the 'Sendable' protocol
 2 |     private var completion: HAResetLock<HAConnection.RequestCompletion>
 3 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:463:17: warning: sending 'handler' risks causing data races; this is an error in the Swift 6 language mode
461 |         send(.init(type: .ping, data: [:])) { result in
462 |             DispatchQueue.main.async {
463 |                 handler(result.map { _ in () }.mapError { $0 })
    |                 |- warning: sending 'handler' risks causing data races; this is an error in the Swift 6 language mode
    |                 `- note: task-isolated 'handler' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
464 |             }
465 |         }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAConnectionImpl.swift:463:25: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
461 |         send(.init(type: .ping, data: [:])) { result in
462 |             DispatchQueue.main.async {
463 |                 handler(result.map { _ in () }.mapError { $0 })
    |                         |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
    |                         `- note: task-isolated 'result' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
464 |             }
465 |         }
[69/79] Compiling HAKit HAReconnectManager.swift
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:121:13: warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 36 | }
 37 |
 38 | internal class HAReconnectManagerImpl: HAReconnectManager {
    |                `- note: class 'HAReconnectManagerImpl' does not conform to the 'Sendable' protocol
 39 |     struct PingConfig {
 40 |         let interval: Measurement<UnitDuration>
    :
119 |         pathMonitor.pathUpdateHandler = { [weak self] _ in
120 |             // if we're waiting to reconnect, try now!
121 |             self?.state.read(\.reconnectTimer)?.fire()
    |             `- warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
122 |         }
123 |         pathMonitor.start(queue: .main)
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:168:13: warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
 36 | }
 37 |
 38 | internal class HAReconnectManagerImpl: HAReconnectManager {
    |                `- note: class 'HAReconnectManagerImpl' does not conform to the 'Sendable' protocol
 39 |     struct PingConfig {
 40 |         let interval: Measurement<UnitDuration>
    :
166 |             repeats: false
167 |         ) { [weak self] _ in
168 |             self?.connectTimerFired()
    |             `- warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
169 |         }
170 |         timer.tolerance = 5.0
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:234:17: warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
 36 | }
 37 |
 38 | internal class HAReconnectManagerImpl: HAReconnectManager {
    |                `- note: class 'HAReconnectManagerImpl' does not conform to the 'Sendable' protocol
 39 |     struct PingConfig {
 40 |         let interval: Measurement<UnitDuration>
    :
232 |                 // Ping timer fired very far after our expected fire date, indicating we were probably suspended
233 |                 // The WebSocket connection is going to fail after such a long interval; force a faster reconnect.
234 |                 self?.handle(pingResult: .failure(HAReconnectManagerError.lateFireReset))
    |                 `- warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
235 |                 return
236 |             }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:267:13: warning: capture of 'pingToken' with non-sendable type '(any HACancellable)?' in a '@Sendable' closure
265 |             repeats: false
266 |         ) { [weak self] _ in
267 |             pingToken?.cancel()
    |             `- warning: capture of 'pingToken' with non-sendable type '(any HACancellable)?' in a '@Sendable' closure
268 |             self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
269 |         }
/Users/admin/builder/spi-builder-workspace/Source/HARequestToken.swift:4:17: note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
2 | ///
3 | /// You do not need to strongly retain this value. Requests are only cancelled explicitly.
4 | public protocol HACancellable {
  |                 `- note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
5 |     /// Cancel the request or subscription represented by this.
6 |     func cancel()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:268:13: warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
 36 | }
 37 |
 38 | internal class HAReconnectManagerImpl: HAReconnectManager {
    |                `- note: class 'HAReconnectManagerImpl' does not conform to the 'Sendable' protocol
 39 |     struct PingConfig {
 40 |         let interval: Measurement<UnitDuration>
    :
266 |         ) { [weak self] _ in
267 |             pingToken?.cancel()
268 |             self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
    |             `- warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
269 |         }
270 |         timeoutTimer?.tolerance = 5.0
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:267:13: warning: reference to captured var 'pingToken' in concurrently-executing code
265 |             repeats: false
266 |         ) { [weak self] _ in
267 |             pingToken?.cancel()
    |             `- warning: reference to captured var 'pingToken' in concurrently-executing code
268 |             self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
269 |         }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:23:17: warning: stored property 'state' of 'Sendable'-conforming class 'HAURLSessionWebSocketEngine' has non-sendable type 'HAProtected<HAURLSessionWebSocketEngine.State>'; this is an error in the Swift 6 language mode
 21 |     /// `URLSession` delegate queue, and mutated on the main queue by `start`/`stop`, so all access goes
 22 |     /// through this lock.
 23 |     private let state = HAProtected<State>(value: .init())
    |                 `- warning: stored property 'state' of 'Sendable'-conforming class 'HAURLSessionWebSocketEngine' has non-sendable type 'HAProtected<HAURLSessionWebSocketEngine.State>'; this is an error in the Swift 6 language mode
 24 |     private weak var delegate: HAWebSocketEngineDelegate?
 25 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAProtected.swift:6:14: note: generic class 'HAProtected' does not conform to the 'Sendable' protocol
 4 | ///
 5 | /// Provided publicly as a convenience in case the library uses it anywhere.
 6 | public class HAProtected<ValueType> {
   |              `- note: generic class 'HAProtected' does not conform to the 'Sendable' protocol
 7 |     private var value: ValueType
 8 |     private let lock: os_unfair_lock_t = {
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:24:22: warning: stored property 'delegate' of 'Sendable'-conforming class 'HAURLSessionWebSocketEngine' is mutable; this is an error in the Swift 6 language mode
 22 |     /// through this lock.
 23 |     private let state = HAProtected<State>(value: .init())
 24 |     private weak var delegate: HAWebSocketEngineDelegate?
    |                      `- warning: stored property 'delegate' of 'Sendable'-conforming class 'HAURLSessionWebSocketEngine' is mutable; this is an error in the Swift 6 language mode
 25 |
 26 |     private let clientIdentity: HAConnectionInfo.ClientIdentityProvider?
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:80:56: warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 78 |     func write(string: String, completion: (() -> Void)?) {
 79 |         let task = state.read { $0.task }
 80 |         task?.send(.string(string), completionHandler: sendCompletion(completion))
    |                                                        `- warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 81 |     }
 82 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:87:56: warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 85 |         case .binaryFrame:
 86 |             let task = state.read { $0.task }
 87 |             task?.send(.data(data), completionHandler: sendCompletion(completion))
    |                                                        `- warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 88 |         case .textFrame:
 89 |             write(string: String(decoding: data, as: UTF8.self), completion: completion)
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:92:48: warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 90 |         case .ping:
 91 |             let task = state.read { $0.task }
 92 |             task?.sendPing(pongReceiveHandler: sendCompletion(completion))
    |                                                `- warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 93 |         default:
 94 |             break
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestController.swift:178:21: warning: capture of 'self' with non-sendable type 'HARequestControllerImpl?' in a '@Sendable' closure
 50 | }
 51 |
 52 | internal class HARequestControllerImpl: HARequestController {
    |                `- note: class 'HARequestControllerImpl' does not conform to the 'Sendable' protocol
 53 |     private struct State {
 54 |         @HASchedulingTimer var retrySubscriptionsTimer: Timer?
    :
176 |             } else {
177 |                 let timer = Timer(fire: fireDate, interval: 0, repeats: false, block: { [weak self] _ in
178 |                     self?.delayedRetrySubscriptions()
    |                     `- warning: capture of 'self' with non-sendable type 'HARequestControllerImpl?' in a '@Sendable' closure
179 |                 })
180 |                 timer.tolerance = 5.0
[70/79] Compiling HAKit HAResetLock.swift
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:121:13: warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 36 | }
 37 |
 38 | internal class HAReconnectManagerImpl: HAReconnectManager {
    |                `- note: class 'HAReconnectManagerImpl' does not conform to the 'Sendable' protocol
 39 |     struct PingConfig {
 40 |         let interval: Measurement<UnitDuration>
    :
119 |         pathMonitor.pathUpdateHandler = { [weak self] _ in
120 |             // if we're waiting to reconnect, try now!
121 |             self?.state.read(\.reconnectTimer)?.fire()
    |             `- warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
122 |         }
123 |         pathMonitor.start(queue: .main)
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:168:13: warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
 36 | }
 37 |
 38 | internal class HAReconnectManagerImpl: HAReconnectManager {
    |                `- note: class 'HAReconnectManagerImpl' does not conform to the 'Sendable' protocol
 39 |     struct PingConfig {
 40 |         let interval: Measurement<UnitDuration>
    :
166 |             repeats: false
167 |         ) { [weak self] _ in
168 |             self?.connectTimerFired()
    |             `- warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
169 |         }
170 |         timer.tolerance = 5.0
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:234:17: warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
 36 | }
 37 |
 38 | internal class HAReconnectManagerImpl: HAReconnectManager {
    |                `- note: class 'HAReconnectManagerImpl' does not conform to the 'Sendable' protocol
 39 |     struct PingConfig {
 40 |         let interval: Measurement<UnitDuration>
    :
232 |                 // Ping timer fired very far after our expected fire date, indicating we were probably suspended
233 |                 // The WebSocket connection is going to fail after such a long interval; force a faster reconnect.
234 |                 self?.handle(pingResult: .failure(HAReconnectManagerError.lateFireReset))
    |                 `- warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
235 |                 return
236 |             }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:267:13: warning: capture of 'pingToken' with non-sendable type '(any HACancellable)?' in a '@Sendable' closure
265 |             repeats: false
266 |         ) { [weak self] _ in
267 |             pingToken?.cancel()
    |             `- warning: capture of 'pingToken' with non-sendable type '(any HACancellable)?' in a '@Sendable' closure
268 |             self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
269 |         }
/Users/admin/builder/spi-builder-workspace/Source/HARequestToken.swift:4:17: note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
2 | ///
3 | /// You do not need to strongly retain this value. Requests are only cancelled explicitly.
4 | public protocol HACancellable {
  |                 `- note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
5 |     /// Cancel the request or subscription represented by this.
6 |     func cancel()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:268:13: warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
 36 | }
 37 |
 38 | internal class HAReconnectManagerImpl: HAReconnectManager {
    |                `- note: class 'HAReconnectManagerImpl' does not conform to the 'Sendable' protocol
 39 |     struct PingConfig {
 40 |         let interval: Measurement<UnitDuration>
    :
266 |         ) { [weak self] _ in
267 |             pingToken?.cancel()
268 |             self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
    |             `- warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
269 |         }
270 |         timeoutTimer?.tolerance = 5.0
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:267:13: warning: reference to captured var 'pingToken' in concurrently-executing code
265 |             repeats: false
266 |         ) { [weak self] _ in
267 |             pingToken?.cancel()
    |             `- warning: reference to captured var 'pingToken' in concurrently-executing code
268 |             self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
269 |         }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:23:17: warning: stored property 'state' of 'Sendable'-conforming class 'HAURLSessionWebSocketEngine' has non-sendable type 'HAProtected<HAURLSessionWebSocketEngine.State>'; this is an error in the Swift 6 language mode
 21 |     /// `URLSession` delegate queue, and mutated on the main queue by `start`/`stop`, so all access goes
 22 |     /// through this lock.
 23 |     private let state = HAProtected<State>(value: .init())
    |                 `- warning: stored property 'state' of 'Sendable'-conforming class 'HAURLSessionWebSocketEngine' has non-sendable type 'HAProtected<HAURLSessionWebSocketEngine.State>'; this is an error in the Swift 6 language mode
 24 |     private weak var delegate: HAWebSocketEngineDelegate?
 25 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAProtected.swift:6:14: note: generic class 'HAProtected' does not conform to the 'Sendable' protocol
 4 | ///
 5 | /// Provided publicly as a convenience in case the library uses it anywhere.
 6 | public class HAProtected<ValueType> {
   |              `- note: generic class 'HAProtected' does not conform to the 'Sendable' protocol
 7 |     private var value: ValueType
 8 |     private let lock: os_unfair_lock_t = {
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:24:22: warning: stored property 'delegate' of 'Sendable'-conforming class 'HAURLSessionWebSocketEngine' is mutable; this is an error in the Swift 6 language mode
 22 |     /// through this lock.
 23 |     private let state = HAProtected<State>(value: .init())
 24 |     private weak var delegate: HAWebSocketEngineDelegate?
    |                      `- warning: stored property 'delegate' of 'Sendable'-conforming class 'HAURLSessionWebSocketEngine' is mutable; this is an error in the Swift 6 language mode
 25 |
 26 |     private let clientIdentity: HAConnectionInfo.ClientIdentityProvider?
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:80:56: warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 78 |     func write(string: String, completion: (() -> Void)?) {
 79 |         let task = state.read { $0.task }
 80 |         task?.send(.string(string), completionHandler: sendCompletion(completion))
    |                                                        `- warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 81 |     }
 82 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:87:56: warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 85 |         case .binaryFrame:
 86 |             let task = state.read { $0.task }
 87 |             task?.send(.data(data), completionHandler: sendCompletion(completion))
    |                                                        `- warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 88 |         case .textFrame:
 89 |             write(string: String(decoding: data, as: UTF8.self), completion: completion)
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:92:48: warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 90 |         case .ping:
 91 |             let task = state.read { $0.task }
 92 |             task?.sendPing(pongReceiveHandler: sendCompletion(completion))
    |                                                `- warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 93 |         default:
 94 |             break
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestController.swift:178:21: warning: capture of 'self' with non-sendable type 'HARequestControllerImpl?' in a '@Sendable' closure
 50 | }
 51 |
 52 | internal class HARequestControllerImpl: HARequestController {
    |                `- note: class 'HARequestControllerImpl' does not conform to the 'Sendable' protocol
 53 |     private struct State {
 54 |         @HASchedulingTimer var retrySubscriptionsTimer: Timer?
    :
176 |             } else {
177 |                 let timer = Timer(fire: fireDate, interval: 0, repeats: false, block: { [weak self] _ in
178 |                     self?.delayedRetrySubscriptions()
    |                     `- warning: capture of 'self' with non-sendable type 'HARequestControllerImpl?' in a '@Sendable' closure
179 |                 })
180 |                 timer.tolerance = 5.0
[71/79] Compiling HAKit HASchedulingTimer.swift
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:121:13: warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 36 | }
 37 |
 38 | internal class HAReconnectManagerImpl: HAReconnectManager {
    |                `- note: class 'HAReconnectManagerImpl' does not conform to the 'Sendable' protocol
 39 |     struct PingConfig {
 40 |         let interval: Measurement<UnitDuration>
    :
119 |         pathMonitor.pathUpdateHandler = { [weak self] _ in
120 |             // if we're waiting to reconnect, try now!
121 |             self?.state.read(\.reconnectTimer)?.fire()
    |             `- warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
122 |         }
123 |         pathMonitor.start(queue: .main)
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:168:13: warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
 36 | }
 37 |
 38 | internal class HAReconnectManagerImpl: HAReconnectManager {
    |                `- note: class 'HAReconnectManagerImpl' does not conform to the 'Sendable' protocol
 39 |     struct PingConfig {
 40 |         let interval: Measurement<UnitDuration>
    :
166 |             repeats: false
167 |         ) { [weak self] _ in
168 |             self?.connectTimerFired()
    |             `- warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
169 |         }
170 |         timer.tolerance = 5.0
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:234:17: warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
 36 | }
 37 |
 38 | internal class HAReconnectManagerImpl: HAReconnectManager {
    |                `- note: class 'HAReconnectManagerImpl' does not conform to the 'Sendable' protocol
 39 |     struct PingConfig {
 40 |         let interval: Measurement<UnitDuration>
    :
232 |                 // Ping timer fired very far after our expected fire date, indicating we were probably suspended
233 |                 // The WebSocket connection is going to fail after such a long interval; force a faster reconnect.
234 |                 self?.handle(pingResult: .failure(HAReconnectManagerError.lateFireReset))
    |                 `- warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
235 |                 return
236 |             }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:267:13: warning: capture of 'pingToken' with non-sendable type '(any HACancellable)?' in a '@Sendable' closure
265 |             repeats: false
266 |         ) { [weak self] _ in
267 |             pingToken?.cancel()
    |             `- warning: capture of 'pingToken' with non-sendable type '(any HACancellable)?' in a '@Sendable' closure
268 |             self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
269 |         }
/Users/admin/builder/spi-builder-workspace/Source/HARequestToken.swift:4:17: note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
2 | ///
3 | /// You do not need to strongly retain this value. Requests are only cancelled explicitly.
4 | public protocol HACancellable {
  |                 `- note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
5 |     /// Cancel the request or subscription represented by this.
6 |     func cancel()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:268:13: warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
 36 | }
 37 |
 38 | internal class HAReconnectManagerImpl: HAReconnectManager {
    |                `- note: class 'HAReconnectManagerImpl' does not conform to the 'Sendable' protocol
 39 |     struct PingConfig {
 40 |         let interval: Measurement<UnitDuration>
    :
266 |         ) { [weak self] _ in
267 |             pingToken?.cancel()
268 |             self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
    |             `- warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
269 |         }
270 |         timeoutTimer?.tolerance = 5.0
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:267:13: warning: reference to captured var 'pingToken' in concurrently-executing code
265 |             repeats: false
266 |         ) { [weak self] _ in
267 |             pingToken?.cancel()
    |             `- warning: reference to captured var 'pingToken' in concurrently-executing code
268 |             self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
269 |         }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:23:17: warning: stored property 'state' of 'Sendable'-conforming class 'HAURLSessionWebSocketEngine' has non-sendable type 'HAProtected<HAURLSessionWebSocketEngine.State>'; this is an error in the Swift 6 language mode
 21 |     /// `URLSession` delegate queue, and mutated on the main queue by `start`/`stop`, so all access goes
 22 |     /// through this lock.
 23 |     private let state = HAProtected<State>(value: .init())
    |                 `- warning: stored property 'state' of 'Sendable'-conforming class 'HAURLSessionWebSocketEngine' has non-sendable type 'HAProtected<HAURLSessionWebSocketEngine.State>'; this is an error in the Swift 6 language mode
 24 |     private weak var delegate: HAWebSocketEngineDelegate?
 25 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAProtected.swift:6:14: note: generic class 'HAProtected' does not conform to the 'Sendable' protocol
 4 | ///
 5 | /// Provided publicly as a convenience in case the library uses it anywhere.
 6 | public class HAProtected<ValueType> {
   |              `- note: generic class 'HAProtected' does not conform to the 'Sendable' protocol
 7 |     private var value: ValueType
 8 |     private let lock: os_unfair_lock_t = {
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:24:22: warning: stored property 'delegate' of 'Sendable'-conforming class 'HAURLSessionWebSocketEngine' is mutable; this is an error in the Swift 6 language mode
 22 |     /// through this lock.
 23 |     private let state = HAProtected<State>(value: .init())
 24 |     private weak var delegate: HAWebSocketEngineDelegate?
    |                      `- warning: stored property 'delegate' of 'Sendable'-conforming class 'HAURLSessionWebSocketEngine' is mutable; this is an error in the Swift 6 language mode
 25 |
 26 |     private let clientIdentity: HAConnectionInfo.ClientIdentityProvider?
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:80:56: warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 78 |     func write(string: String, completion: (() -> Void)?) {
 79 |         let task = state.read { $0.task }
 80 |         task?.send(.string(string), completionHandler: sendCompletion(completion))
    |                                                        `- warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 81 |     }
 82 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:87:56: warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 85 |         case .binaryFrame:
 86 |             let task = state.read { $0.task }
 87 |             task?.send(.data(data), completionHandler: sendCompletion(completion))
    |                                                        `- warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 88 |         case .textFrame:
 89 |             write(string: String(decoding: data, as: UTF8.self), completion: completion)
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:92:48: warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 90 |         case .ping:
 91 |             let task = state.read { $0.task }
 92 |             task?.sendPing(pongReceiveHandler: sendCompletion(completion))
    |                                                `- warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 93 |         default:
 94 |             break
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestController.swift:178:21: warning: capture of 'self' with non-sendable type 'HARequestControllerImpl?' in a '@Sendable' closure
 50 | }
 51 |
 52 | internal class HARequestControllerImpl: HARequestController {
    |                `- note: class 'HARequestControllerImpl' does not conform to the 'Sendable' protocol
 53 |     private struct State {
 54 |         @HASchedulingTimer var retrySubscriptionsTimer: Timer?
    :
176 |             } else {
177 |                 let timer = Timer(fire: fireDate, interval: 0, repeats: false, block: { [weak self] _ in
178 |                     self?.delayedRetrySubscriptions()
    |                     `- warning: capture of 'self' with non-sendable type 'HARequestControllerImpl?' in a '@Sendable' closure
179 |                 })
180 |                 timer.tolerance = 5.0
[72/79] Compiling HAKit HAURLSessionWebSocketEngine.swift
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:121:13: warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 36 | }
 37 |
 38 | internal class HAReconnectManagerImpl: HAReconnectManager {
    |                `- note: class 'HAReconnectManagerImpl' does not conform to the 'Sendable' protocol
 39 |     struct PingConfig {
 40 |         let interval: Measurement<UnitDuration>
    :
119 |         pathMonitor.pathUpdateHandler = { [weak self] _ in
120 |             // if we're waiting to reconnect, try now!
121 |             self?.state.read(\.reconnectTimer)?.fire()
    |             `- warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
122 |         }
123 |         pathMonitor.start(queue: .main)
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:168:13: warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
 36 | }
 37 |
 38 | internal class HAReconnectManagerImpl: HAReconnectManager {
    |                `- note: class 'HAReconnectManagerImpl' does not conform to the 'Sendable' protocol
 39 |     struct PingConfig {
 40 |         let interval: Measurement<UnitDuration>
    :
166 |             repeats: false
167 |         ) { [weak self] _ in
168 |             self?.connectTimerFired()
    |             `- warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
169 |         }
170 |         timer.tolerance = 5.0
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:234:17: warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
 36 | }
 37 |
 38 | internal class HAReconnectManagerImpl: HAReconnectManager {
    |                `- note: class 'HAReconnectManagerImpl' does not conform to the 'Sendable' protocol
 39 |     struct PingConfig {
 40 |         let interval: Measurement<UnitDuration>
    :
232 |                 // Ping timer fired very far after our expected fire date, indicating we were probably suspended
233 |                 // The WebSocket connection is going to fail after such a long interval; force a faster reconnect.
234 |                 self?.handle(pingResult: .failure(HAReconnectManagerError.lateFireReset))
    |                 `- warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
235 |                 return
236 |             }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:267:13: warning: capture of 'pingToken' with non-sendable type '(any HACancellable)?' in a '@Sendable' closure
265 |             repeats: false
266 |         ) { [weak self] _ in
267 |             pingToken?.cancel()
    |             `- warning: capture of 'pingToken' with non-sendable type '(any HACancellable)?' in a '@Sendable' closure
268 |             self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
269 |         }
/Users/admin/builder/spi-builder-workspace/Source/HARequestToken.swift:4:17: note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
2 | ///
3 | /// You do not need to strongly retain this value. Requests are only cancelled explicitly.
4 | public protocol HACancellable {
  |                 `- note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
5 |     /// Cancel the request or subscription represented by this.
6 |     func cancel()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:268:13: warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
 36 | }
 37 |
 38 | internal class HAReconnectManagerImpl: HAReconnectManager {
    |                `- note: class 'HAReconnectManagerImpl' does not conform to the 'Sendable' protocol
 39 |     struct PingConfig {
 40 |         let interval: Measurement<UnitDuration>
    :
266 |         ) { [weak self] _ in
267 |             pingToken?.cancel()
268 |             self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
    |             `- warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
269 |         }
270 |         timeoutTimer?.tolerance = 5.0
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:267:13: warning: reference to captured var 'pingToken' in concurrently-executing code
265 |             repeats: false
266 |         ) { [weak self] _ in
267 |             pingToken?.cancel()
    |             `- warning: reference to captured var 'pingToken' in concurrently-executing code
268 |             self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
269 |         }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:23:17: warning: stored property 'state' of 'Sendable'-conforming class 'HAURLSessionWebSocketEngine' has non-sendable type 'HAProtected<HAURLSessionWebSocketEngine.State>'; this is an error in the Swift 6 language mode
 21 |     /// `URLSession` delegate queue, and mutated on the main queue by `start`/`stop`, so all access goes
 22 |     /// through this lock.
 23 |     private let state = HAProtected<State>(value: .init())
    |                 `- warning: stored property 'state' of 'Sendable'-conforming class 'HAURLSessionWebSocketEngine' has non-sendable type 'HAProtected<HAURLSessionWebSocketEngine.State>'; this is an error in the Swift 6 language mode
 24 |     private weak var delegate: HAWebSocketEngineDelegate?
 25 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAProtected.swift:6:14: note: generic class 'HAProtected' does not conform to the 'Sendable' protocol
 4 | ///
 5 | /// Provided publicly as a convenience in case the library uses it anywhere.
 6 | public class HAProtected<ValueType> {
   |              `- note: generic class 'HAProtected' does not conform to the 'Sendable' protocol
 7 |     private var value: ValueType
 8 |     private let lock: os_unfair_lock_t = {
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:24:22: warning: stored property 'delegate' of 'Sendable'-conforming class 'HAURLSessionWebSocketEngine' is mutable; this is an error in the Swift 6 language mode
 22 |     /// through this lock.
 23 |     private let state = HAProtected<State>(value: .init())
 24 |     private weak var delegate: HAWebSocketEngineDelegate?
    |                      `- warning: stored property 'delegate' of 'Sendable'-conforming class 'HAURLSessionWebSocketEngine' is mutable; this is an error in the Swift 6 language mode
 25 |
 26 |     private let clientIdentity: HAConnectionInfo.ClientIdentityProvider?
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:80:56: warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 78 |     func write(string: String, completion: (() -> Void)?) {
 79 |         let task = state.read { $0.task }
 80 |         task?.send(.string(string), completionHandler: sendCompletion(completion))
    |                                                        `- warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 81 |     }
 82 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:87:56: warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 85 |         case .binaryFrame:
 86 |             let task = state.read { $0.task }
 87 |             task?.send(.data(data), completionHandler: sendCompletion(completion))
    |                                                        `- warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 88 |         case .textFrame:
 89 |             write(string: String(decoding: data, as: UTF8.self), completion: completion)
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:92:48: warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 90 |         case .ping:
 91 |             let task = state.read { $0.task }
 92 |             task?.sendPing(pongReceiveHandler: sendCompletion(completion))
    |                                                `- warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 93 |         default:
 94 |             break
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestController.swift:178:21: warning: capture of 'self' with non-sendable type 'HARequestControllerImpl?' in a '@Sendable' closure
 50 | }
 51 |
 52 | internal class HARequestControllerImpl: HARequestController {
    |                `- note: class 'HARequestControllerImpl' does not conform to the 'Sendable' protocol
 53 |     private struct State {
 54 |         @HASchedulingTimer var retrySubscriptionsTimer: Timer?
    :
176 |             } else {
177 |                 let timer = Timer(fire: fireDate, interval: 0, repeats: false, block: { [weak self] _ in
178 |                     self?.delayedRetrySubscriptions()
    |                     `- warning: capture of 'self' with non-sendable type 'HARequestControllerImpl?' in a '@Sendable' closure
179 |                 })
180 |                 timer.tolerance = 5.0
[73/79] Compiling HAKit HARequestController.swift
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:121:13: warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
 36 | }
 37 |
 38 | internal class HAReconnectManagerImpl: HAReconnectManager {
    |                `- note: class 'HAReconnectManagerImpl' does not conform to the 'Sendable' protocol
 39 |     struct PingConfig {
 40 |         let interval: Measurement<UnitDuration>
    :
119 |         pathMonitor.pathUpdateHandler = { [weak self] _ in
120 |             // if we're waiting to reconnect, try now!
121 |             self?.state.read(\.reconnectTimer)?.fire()
    |             `- warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure; this is an error in the Swift 6 language mode
122 |         }
123 |         pathMonitor.start(queue: .main)
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:168:13: warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
 36 | }
 37 |
 38 | internal class HAReconnectManagerImpl: HAReconnectManager {
    |                `- note: class 'HAReconnectManagerImpl' does not conform to the 'Sendable' protocol
 39 |     struct PingConfig {
 40 |         let interval: Measurement<UnitDuration>
    :
166 |             repeats: false
167 |         ) { [weak self] _ in
168 |             self?.connectTimerFired()
    |             `- warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
169 |         }
170 |         timer.tolerance = 5.0
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:234:17: warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
 36 | }
 37 |
 38 | internal class HAReconnectManagerImpl: HAReconnectManager {
    |                `- note: class 'HAReconnectManagerImpl' does not conform to the 'Sendable' protocol
 39 |     struct PingConfig {
 40 |         let interval: Measurement<UnitDuration>
    :
232 |                 // Ping timer fired very far after our expected fire date, indicating we were probably suspended
233 |                 // The WebSocket connection is going to fail after such a long interval; force a faster reconnect.
234 |                 self?.handle(pingResult: .failure(HAReconnectManagerError.lateFireReset))
    |                 `- warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
235 |                 return
236 |             }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:267:13: warning: capture of 'pingToken' with non-sendable type '(any HACancellable)?' in a '@Sendable' closure
265 |             repeats: false
266 |         ) { [weak self] _ in
267 |             pingToken?.cancel()
    |             `- warning: capture of 'pingToken' with non-sendable type '(any HACancellable)?' in a '@Sendable' closure
268 |             self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
269 |         }
/Users/admin/builder/spi-builder-workspace/Source/HARequestToken.swift:4:17: note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
2 | ///
3 | /// You do not need to strongly retain this value. Requests are only cancelled explicitly.
4 | public protocol HACancellable {
  |                 `- note: protocol 'HACancellable' does not conform to the 'Sendable' protocol
5 |     /// Cancel the request or subscription represented by this.
6 |     func cancel()
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:268:13: warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
 36 | }
 37 |
 38 | internal class HAReconnectManagerImpl: HAReconnectManager {
    |                `- note: class 'HAReconnectManagerImpl' does not conform to the 'Sendable' protocol
 39 |     struct PingConfig {
 40 |         let interval: Measurement<UnitDuration>
    :
266 |         ) { [weak self] _ in
267 |             pingToken?.cancel()
268 |             self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
    |             `- warning: capture of 'self' with non-sendable type 'HAReconnectManagerImpl?' in a '@Sendable' closure
269 |         }
270 |         timeoutTimer?.tolerance = 5.0
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAReconnectManager.swift:267:13: warning: reference to captured var 'pingToken' in concurrently-executing code
265 |             repeats: false
266 |         ) { [weak self] _ in
267 |             pingToken?.cancel()
    |             `- warning: reference to captured var 'pingToken' in concurrently-executing code
268 |             self?.handle(pingResult: .failure(HAReconnectManagerError.timeout))
269 |         }
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:23:17: warning: stored property 'state' of 'Sendable'-conforming class 'HAURLSessionWebSocketEngine' has non-sendable type 'HAProtected<HAURLSessionWebSocketEngine.State>'; this is an error in the Swift 6 language mode
 21 |     /// `URLSession` delegate queue, and mutated on the main queue by `start`/`stop`, so all access goes
 22 |     /// through this lock.
 23 |     private let state = HAProtected<State>(value: .init())
    |                 `- warning: stored property 'state' of 'Sendable'-conforming class 'HAURLSessionWebSocketEngine' has non-sendable type 'HAProtected<HAURLSessionWebSocketEngine.State>'; this is an error in the Swift 6 language mode
 24 |     private weak var delegate: HAWebSocketEngineDelegate?
 25 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAProtected.swift:6:14: note: generic class 'HAProtected' does not conform to the 'Sendable' protocol
 4 | ///
 5 | /// Provided publicly as a convenience in case the library uses it anywhere.
 6 | public class HAProtected<ValueType> {
   |              `- note: generic class 'HAProtected' does not conform to the 'Sendable' protocol
 7 |     private var value: ValueType
 8 |     private let lock: os_unfair_lock_t = {
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:24:22: warning: stored property 'delegate' of 'Sendable'-conforming class 'HAURLSessionWebSocketEngine' is mutable; this is an error in the Swift 6 language mode
 22 |     /// through this lock.
 23 |     private let state = HAProtected<State>(value: .init())
 24 |     private weak var delegate: HAWebSocketEngineDelegate?
    |                      `- warning: stored property 'delegate' of 'Sendable'-conforming class 'HAURLSessionWebSocketEngine' is mutable; this is an error in the Swift 6 language mode
 25 |
 26 |     private let clientIdentity: HAConnectionInfo.ClientIdentityProvider?
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:80:56: warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 78 |     func write(string: String, completion: (() -> Void)?) {
 79 |         let task = state.read { $0.task }
 80 |         task?.send(.string(string), completionHandler: sendCompletion(completion))
    |                                                        `- warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 81 |     }
 82 |
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:87:56: warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 85 |         case .binaryFrame:
 86 |             let task = state.read { $0.task }
 87 |             task?.send(.data(data), completionHandler: sendCompletion(completion))
    |                                                        `- warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 88 |         case .textFrame:
 89 |             write(string: String(decoding: data, as: UTF8.self), completion: completion)
/Users/admin/builder/spi-builder-workspace/Source/Internal/HAURLSessionWebSocketEngine.swift:92:48: warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 90 |         case .ping:
 91 |             let task = state.read { $0.task }
 92 |             task?.sendPing(pongReceiveHandler: sendCompletion(completion))
    |                                                `- warning: converting non-sendable function value to '@Sendable ((any Error)?) -> Void' may introduce data races
 93 |         default:
 94 |             break
/Users/admin/builder/spi-builder-workspace/Source/Internal/RequestController/HARequestController.swift:178:21: warning: capture of 'self' with non-sendable type 'HARequestControllerImpl?' in a '@Sendable' closure
 50 | }
 51 |
 52 | internal class HARequestControllerImpl: HARequestController {
    |                `- note: class 'HARequestControllerImpl' does not conform to the 'Sendable' protocol
 53 |     private struct State {
 54 |         @HASchedulingTimer var retrySubscriptionsTimer: Timer?
    :
176 |             } else {
177 |                 let timer = Timer(fire: fireDate, interval: 0, repeats: false, block: { [weak self] _ in
178 |                     self?.delayedRetrySubscriptions()
    |                     `- warning: capture of 'self' with non-sendable type 'HARequestControllerImpl?' in a '@Sendable' closure
179 |                 })
180 |                 timer.tolerance = 5.0
[74/79] Compiling HAKit States.swift
/Users/admin/builder/spi-builder-workspace/Source/Data/HADecodeTransformable.swift:66:24: warning: static property 'formatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
 64 | extension Date: HADecodeTransformable {
 65 |     /// Date formatters
 66 |     private static let formatters: [ISO8601DateFormatter] = [
    |                        |- warning: static property 'formatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'formatters' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 67 |         {
 68 |             let formatter = ISO8601DateFormatter()
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
  |                       `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
[75/79] Compiling HAKit HACompressedEntity.swift
/Users/admin/builder/spi-builder-workspace/Source/Data/HADecodeTransformable.swift:66:24: warning: static property 'formatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
 64 | extension Date: HADecodeTransformable {
 65 |     /// Date formatters
 66 |     private static let formatters: [ISO8601DateFormatter] = [
    |                        |- warning: static property 'formatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'formatters' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 67 |         {
 68 |             let formatter = ISO8601DateFormatter()
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
  |                       `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
[76/79] Compiling HAKit HAData.swift
/Users/admin/builder/spi-builder-workspace/Source/Data/HADecodeTransformable.swift:66:24: warning: static property 'formatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
 64 | extension Date: HADecodeTransformable {
 65 |     /// Date formatters
 66 |     private static let formatters: [ISO8601DateFormatter] = [
    |                        |- warning: static property 'formatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'formatters' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 67 |         {
 68 |             let formatter = ISO8601DateFormatter()
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
  |                       `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
[77/79] Compiling HAKit HADataDecodable.swift
/Users/admin/builder/spi-builder-workspace/Source/Data/HADecodeTransformable.swift:66:24: warning: static property 'formatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
 64 | extension Date: HADecodeTransformable {
 65 |     /// Date formatters
 66 |     private static let formatters: [ISO8601DateFormatter] = [
    |                        |- warning: static property 'formatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'formatters' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 67 |         {
 68 |             let formatter = ISO8601DateFormatter()
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
  |                       `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
[78/79] Compiling HAKit HADecodeTransformable.swift
/Users/admin/builder/spi-builder-workspace/Source/Data/HADecodeTransformable.swift:66:24: warning: static property 'formatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
 64 | extension Date: HADecodeTransformable {
 65 |     /// Date formatters
 66 |     private static let formatters: [ISO8601DateFormatter] = [
    |                        |- warning: static property 'formatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'formatters' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 67 |         {
 68 |             let formatter = ISO8601DateFormatter()
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
  |                       `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
[79/79] Compiling HAKit HAEntity+CompressedEntity.swift
/Users/admin/builder/spi-builder-workspace/Source/Data/HADecodeTransformable.swift:66:24: warning: static property 'formatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
 64 | extension Date: HADecodeTransformable {
 65 |     /// Date formatters
 66 |     private static let formatters: [ISO8601DateFormatter] = [
    |                        |- warning: static property 'formatters' is not concurrency-safe because non-'Sendable' type '[ISO8601DateFormatter]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: add '@MainActor' to make static property 'formatters' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 67 |         {
 68 |             let formatter = ISO8601DateFormatter()
Swift.Array:1:23: note: generic struct 'Array' does not conform to the 'Sendable' protocol
1 | @frozen public struct Array<Element> : _DestructorSafeContainer {
  |                       `- note: generic struct 'Array' does not conform to the 'Sendable' protocol
2 | }
[80/84] Compiling HAKit_PromiseKit HACache+PromiseKit.swift
[81/84] Compiling HAKit_PromiseKit HAConnection+PromiseKit.swift
[82/84] Emitting module HAKit_PromiseKit
[83/84] Emitting module HAKit_Mocks
/Users/admin/builder/spi-builder-workspace/Extensions/Mocks/HAConnection+Mock.swift:9:16: warning: static property 'fake' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  7 |     /// A basic, fake configuration that is always successful.
  8 |     /// This is available to be modified at will; nothing depends on the values provided.
  9 |     static var fake = HAConnectionConfiguration(
    |                |- warning: static property 'fake' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'fake' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'fake' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 10 |         connectionInfo: { () -> HAConnectionInfo? in
 11 |             try? .init(url: URL(string: "http://127.0.0.1:8123")!)
/Users/admin/builder/spi-builder-workspace/Extensions/Mocks/HAConnection+Mock.swift:94:17: warning: capture of 'self' with non-sendable type 'HAMockConnection' in a '@Sendable' closure
 42 | ///
 43 | /// Provides basic scaffolding to test usage of the library.
 44 | public class HAMockConnection: HAConnection {
    |              `- note: class 'HAMockConnection' does not conform to the 'Sendable' protocol
 45 |     // MARK: - Mock Handling
 46 |
    :
 92 |             // matching async behavior of HAConnectionImpl
 93 |             callbackQueue.async { [self, state] in
 94 |                 delegate?.connection(self, didTransitionTo: state)
    |                 `- warning: capture of 'self' with non-sendable type 'HAMockConnection' in a '@Sendable' closure
 95 |                 NotificationCenter.default.post(name: HAConnectionState.didTransitionToStateNotification, object: self)
 96 |             }
/Users/admin/builder/spi-builder-workspace/Extensions/Mocks/HAConnection+Mock.swift:94:61: warning: capture of 'state' with non-sendable type 'HAConnectionState' in a '@Sendable' closure
 92 |             // matching async behavior of HAConnectionImpl
 93 |             callbackQueue.async { [self, state] in
 94 |                 delegate?.connection(self, didTransitionTo: state)
    |                                                             `- warning: capture of 'state' with non-sendable type 'HAConnectionState' in a '@Sendable' closure
 95 |                 NotificationCenter.default.post(name: HAConnectionState.didTransitionToStateNotification, object: self)
 96 |             }
/Users/admin/builder/spi-builder-workspace/Source/HAConnection.swift:14:13: note: enum 'HAConnectionState' does not conform to the 'Sendable' protocol
 12 |
 13 | /// State of the connection
 14 | public enum HAConnectionState: Equatable {
    |             `- note: enum 'HAConnectionState' does not conform to the 'Sendable' protocol
 15 |     /// Notification fired when state transitions occur
 16 |     ///
/Users/admin/builder/spi-builder-workspace/Extensions/Mocks/HAConnection+Mock.swift:3:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'HAKit'
  1 | import Foundation
  2 | #if SWIFT_PACKAGE
  3 | import HAKit
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'HAKit'
  4 | #endif
  5 |
[84/84] Compiling HAKit_Mocks HAConnection+Mock.swift
/Users/admin/builder/spi-builder-workspace/Extensions/Mocks/HAConnection+Mock.swift:9:16: warning: static property 'fake' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
  7 |     /// A basic, fake configuration that is always successful.
  8 |     /// This is available to be modified at will; nothing depends on the values provided.
  9 |     static var fake = HAConnectionConfiguration(
    |                |- warning: static property 'fake' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'fake' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'fake' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 10 |         connectionInfo: { () -> HAConnectionInfo? in
 11 |             try? .init(url: URL(string: "http://127.0.0.1:8123")!)
/Users/admin/builder/spi-builder-workspace/Extensions/Mocks/HAConnection+Mock.swift:94:17: warning: capture of 'self' with non-sendable type 'HAMockConnection' in a '@Sendable' closure
 42 | ///
 43 | /// Provides basic scaffolding to test usage of the library.
 44 | public class HAMockConnection: HAConnection {
    |              `- note: class 'HAMockConnection' does not conform to the 'Sendable' protocol
 45 |     // MARK: - Mock Handling
 46 |
    :
 92 |             // matching async behavior of HAConnectionImpl
 93 |             callbackQueue.async { [self, state] in
 94 |                 delegate?.connection(self, didTransitionTo: state)
    |                 `- warning: capture of 'self' with non-sendable type 'HAMockConnection' in a '@Sendable' closure
 95 |                 NotificationCenter.default.post(name: HAConnectionState.didTransitionToStateNotification, object: self)
 96 |             }
/Users/admin/builder/spi-builder-workspace/Extensions/Mocks/HAConnection+Mock.swift:94:61: warning: capture of 'state' with non-sendable type 'HAConnectionState' in a '@Sendable' closure
 92 |             // matching async behavior of HAConnectionImpl
 93 |             callbackQueue.async { [self, state] in
 94 |                 delegate?.connection(self, didTransitionTo: state)
    |                                                             `- warning: capture of 'state' with non-sendable type 'HAConnectionState' in a '@Sendable' closure
 95 |                 NotificationCenter.default.post(name: HAConnectionState.didTransitionToStateNotification, object: self)
 96 |             }
/Users/admin/builder/spi-builder-workspace/Source/HAConnection.swift:14:13: note: enum 'HAConnectionState' does not conform to the 'Sendable' protocol
 12 |
 13 | /// State of the connection
 14 | public enum HAConnectionState: Equatable {
    |             `- note: enum 'HAConnectionState' does not conform to the 'Sendable' protocol
 15 |     /// Notification fired when state transitions occur
 16 |     ///
/Users/admin/builder/spi-builder-workspace/Extensions/Mocks/HAConnection+Mock.swift:3:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'HAKit'
  1 | import Foundation
  2 | #if SWIFT_PACKAGE
  3 | import HAKit
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'HAKit'
  4 | #endif
  5 |
/Users/admin/builder/spi-builder-workspace/Extensions/Mocks/HAConnection+Mock.swift:222:38: warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
220 |         }
221 |
222 |         callbackQueue.async(execute: stop)
    |                                      `- warning: converting non-sendable function value to '@Sendable @convention(block) () -> Void' may introduce data races
223 |         DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(5), execute: stop)
224 |
/Users/admin/builder/spi-builder-workspace/Extensions/Mocks/HAConnection+Mock.swift:223:80: warning: converting non-sendable function value to '@MainActor @Sendable @convention(block) () -> Void' may introduce data races
221 |
222 |         callbackQueue.async(execute: stop)
223 |         DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(5), execute: stop)
    |                                                                                `- warning: converting non-sendable function value to '@MainActor @Sendable @convention(block) () -> Void' may introduce data races
224 |
225 |         while hasCalled == 0 {
Build complete! (27.65s)
Fetching https://github.com/mxcl/PromiseKit
[1/17244] Fetching promisekit
Fetched https://github.com/mxcl/PromiseKit from cache (2.36s)
Computing version for https://github.com/mxcl/PromiseKit
Computed https://github.com/mxcl/PromiseKit at 8.2.0 (2.98s)
Creating working copy for https://github.com/mxcl/PromiseKit
Working copy of https://github.com/mxcl/PromiseKit resolved at 8.2.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "promisekit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "8.1.1",
            "upper_bound" : "9.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/mxcl/PromiseKit"
    }
  ],
  "manifest_display_name" : "HAKit",
  "name" : "HAKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "HAKit",
      "targets" : [
        "HAKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "HAKit+PromiseKit",
      "targets" : [
        "HAKit+PromiseKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "HAKit+Mocks",
      "targets" : [
        "HAKit+Mocks"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "Tests",
      "module_type" : "SwiftTarget",
      "name" : "Tests",
      "path" : "Tests",
      "sources" : [
        "CurrentUser.test.swift",
        "Event.test.swift",
        "FakeEngine.swift",
        "HACache.test.swift",
        "HACacheKeyStates.test.swift",
        "HACachePopulateInfo.test.swift",
        "HACacheSubscribeInfo.test.swift",
        "HACachedStates.test.swift",
        "HACachedUser.test.swift",
        "HACachesContainer.test.swift",
        "HACancellableImpl.test.swift",
        "HAConnectionConfiguration.test.swift",
        "HAConnectionImpl.test.swift",
        "HAConnectionInfo.test.swift",
        "HAData.test.swift",
        "HADataDecodable.test.swift",
        "HAEntity+CompressedEntity.test.swift",
        "HAEntity.test.swift",
        "HAError.test.swift",
        "HAKit.test.swift",
        "HAReconnectManager.test.swift",
        "HARequestController.test.swift",
        "HARequestInvocation.test.swift",
        "HARequestInvocationSingle.test.swift",
        "HARequestInvocationSubscription.test.swift",
        "HAResetLock.test.swift",
        "HAResponseController.test.swift",
        "HAResponseVoid.test.swift",
        "HAURLSessionDelegate.test.swift",
        "HAURLSessionWebSocketEngine.test.swift",
        "HAWebSocket.test.swift",
        "HAWebSocketResponse.test.swift",
        "HAWebSocketResponseFixture.swift",
        "RenderTemplate.test.swift",
        "Services.test.swift",
        "States.test.swift",
        "StubbingURLProtocol.swift",
        "TestAdditions.swift"
      ],
      "target_dependencies" : [
        "HAKit",
        "HAKit+PromiseKit",
        "HAKit+Mocks"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HAKit_PromiseKit",
      "module_type" : "SwiftTarget",
      "name" : "HAKit+PromiseKit",
      "path" : "Extensions/PromiseKit",
      "product_dependencies" : [
        "PromiseKit"
      ],
      "product_memberships" : [
        "HAKit+PromiseKit"
      ],
      "sources" : [
        "HACache+PromiseKit.swift",
        "HAConnection+PromiseKit.swift"
      ],
      "target_dependencies" : [
        "HAKit"
      ],
      "type" : "library"
    },
    {
      "c99name" : "HAKit_Mocks",
      "module_type" : "SwiftTarget",
      "name" : "HAKit+Mocks",
      "path" : "Extensions/Mocks",
      "product_memberships" : [
        "HAKit+Mocks"
      ],
      "sources" : [
        "HAConnection+Mock.swift"
      ],
      "target_dependencies" : [
        "HAKit"
      ],
      "type" : "library"
    },
    {
      "c99name" : "HAKit",
      "module_type" : "SwiftTarget",
      "name" : "HAKit",
      "path" : "Source",
      "product_memberships" : [
        "HAKit",
        "HAKit+PromiseKit",
        "HAKit+Mocks"
      ],
      "sources" : [
        "Caches/HACache.swift",
        "Caches/HACacheKeyStates.swift",
        "Caches/HACachePopulateInfo.swift",
        "Caches/HACacheSubscribeInfo.swift",
        "Caches/HACacheTransformInfo.swift",
        "Caches/HACachedStates.swift",
        "Caches/HACachedUser.swift",
        "Caches/HACachesContainer.swift",
        "Convenience/CurrentUser.swift",
        "Convenience/Event.swift",
        "Convenience/RenderTemplate.swift",
        "Convenience/Services.swift",
        "Convenience/States.swift",
        "Data/HACompressedEntity.swift",
        "Data/HAData.swift",
        "Data/HADataDecodable.swift",
        "Data/HADecodeTransformable.swift",
        "Data/HAEntity+CompressedEntity.swift",
        "Data/HAEntity.swift",
        "Data/HAService.swift",
        "HAConnection.swift",
        "HAConnectionConfiguration.swift",
        "HAConnectionInfo.swift",
        "HAError.swift",
        "HAGlobal.swift",
        "HAKit.swift",
        "HARequestToken.swift",
        "HAURLSessionDelegate.swift",
        "Internal/HACancellableImpl.swift",
        "Internal/HAConnectionImpl+Requests.swift",
        "Internal/HAConnectionImpl+Responses.swift",
        "Internal/HAConnectionImpl.swift",
        "Internal/HAProtected.swift",
        "Internal/HAReconnectManager.swift",
        "Internal/HAResetLock.swift",
        "Internal/HASchedulingTimer.swift",
        "Internal/HAURLSessionWebSocketEngine.swift",
        "Internal/RequestController/HARequestController.swift",
        "Internal/RequestController/HARequestIdentifier.swift",
        "Internal/RequestController/HARequestInvocation.swift",
        "Internal/RequestController/HARequestInvocationSingle.swift",
        "Internal/RequestController/HARequestInvocationSubscription.swift",
        "Internal/ResponseController/HAResponseController.swift",
        "Internal/ResponseController/HAWebSocketResponse.swift",
        "Internal/WebSocket/HAWebSocket.swift",
        "Internal/WebSocket/HAWebSocketEngine.swift",
        "Requests/HAHTTPMethod.swift",
        "Requests/HARequest.swift",
        "Requests/HARequestType.swift",
        "Requests/HAResponseVoid.swift",
        "Requests/HASttData.swift",
        "Requests/HATypedRequest.swift",
        "Requests/HATypedSubscription.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.