The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of Socket, reference 0.3.3 (9945ad), with Swift 6.0 for macOS (SPM) on 15 Sep 2024 23:43:38 UTC.

Swift 6 data race errors: 2

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/stackotter/Socket.git
Reference: 0.3.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/stackotter/Socket
 * tag               0.3.3      -> FETCH_HEAD
HEAD is now at 9945adf Fix pointer related build warnings
Cloned https://github.com/stackotter/Socket.git
Revision (git rev-parse @):
9945adfb7b2b089b1f9963db31544f604d260293
SUCCESS checkout https://github.com/stackotter/Socket.git at 0.3.3
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/stackotter/Socket.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/5] Write sources
[2/5] Compiling CSocket shims.c
[3/5] Compiling CSystem shims.c
[4/5] Write swift-version-117DEE11B69C53C9.txt
[6/26] Emitting module SystemPackage
[7/28] Compiling SystemPackage FileOperations.swift
[8/28] Compiling SystemPackage FilePath.swift
[9/28] Compiling SystemPackage FilePathComponentView.swift
[10/28] Compiling SystemPackage Errno.swift
[11/28] Compiling SystemPackage FileDescriptor.swift
[12/28] Compiling SystemPackage FileHelpers.swift
[13/28] Compiling SystemPackage PlatformString.swift
[14/28] Compiling SystemPackage SystemString.swift
[15/28] Compiling SystemPackage FilePathComponents.swift
[16/28] Compiling SystemPackage FilePathParsing.swift
[17/28] Compiling SystemPackage Exports.swift
[18/28] Compiling SystemPackage Mocking.swift
[19/28] Compiling SystemPackage Syscalls.swift
[20/28] Compiling SystemPackage WindowsSyscallAdapters.swift
[21/28] Compiling SystemPackage FilePathWindows.swift
[22/28] Compiling SystemPackage FilePermissions.swift
[23/28] Compiling SystemPackage FilePathString.swift
[24/28] Compiling SystemPackage FilePathSyntax.swift
[25/28] Compiling SystemPackage CInterop.swift
[26/28] Compiling SystemPackage Constants.swift
[27/28] Compiling SystemPackage Util.swift
[28/28] Compiling SystemPackage UtilConsumers.swift
[29/68] Compiling Socket SocketAddressFamily.swift
[30/68] Compiling Socket SocketDescriptor.swift
[31/68] Compiling Socket SocketFlags.swift
[32/68] Compiling Socket SocketHelpers.swift
[33/72] Compiling Socket CInternetAddress.swift
[34/72] Compiling Socket CInterop.swift
[35/72] Compiling Socket CSocketAddress.swift
[36/72] Compiling Socket Constants.swift
[37/72] Compiling Socket Errno.swift
[38/72] Compiling Socket SocketProtocol.swift
[39/72] Compiling Socket IPv4Protocol.swift
[40/72] Compiling Socket IPv6Protocol.swift
[41/72] Compiling Socket LinkLayerProtocol.swift
[42/72] Compiling Socket SocketOperations.swift
[43/72] Compiling Socket SocketOption.swift
[44/72] Compiling Socket SocketOptionID.swift
[45/72] Compiling Socket SocketOptionLevel.swift
[46/72] Compiling Socket UnixProtocol.swift
[47/72] Compiling Socket SocketType.swift
[48/72] Compiling Socket Syscalls.swift
[49/72] Compiling Socket Util.swift
[50/72] Emitting module Socket
/Users/admin/builder/spi-builder-workspace/Sources/Socket/Socket.swift:17:23: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |     /// Configuration for fine-tuning socket performance.
 17 |     public static var configuration: AsyncSocketConfiguration = AsyncSocketConfiguration() {
    |                       |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |         didSet {
 19 |             configuration.configureManager()
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:60:10: warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 58 |     // MARK: - Methods
 59 |
 60 |     func add(
    |          `- warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 61 |         _ fileDescriptor: SocketDescriptor
 62 |     ) -> Socket.Event.Stream {
/Users/admin/builder/spi-builder-workspace/Sources/Socket/Socket.swift:181:10: note: consider making enum 'Event' conform to the 'Sendable' protocol
179 |
180 |     /// Socket Event
181 |     enum Event {
    |          `- note: consider making enum 'Event' conform to the 'Sendable' protocol
182 |
183 |         /// New connection
[51/72] Compiling Socket IPv4SocketAddress.swift
[52/72] Compiling Socket IPv6SocketAddress.swift
[53/72] Compiling Socket LinkLayerSocketAddress.swift
[54/72] Compiling Socket UnixSocketAddress.swift
[55/72] Compiling Socket IOOperations.swift
[56/72] Compiling Socket IOType.swift
[57/72] Compiling Socket InternetProtocol.swift
[58/72] Compiling Socket MessageFlags.swift
[59/72] Compiling Socket NetworkInterface.swift
[60/72] Compiling Socket NetworkOrder.swift
[61/72] Compiling Socket Poll.swift
[62/72] Compiling Socket SocketAddress.swift
[63/72] Compiling Socket FileChange.swift
[64/72] Compiling Socket FileEvent.swift
[65/72] Compiling Socket FileFlags.swift
[66/72] Compiling Socket IOControl.swift
[67/72] Compiling Socket IODirection.swift
[68/72] Compiling Socket Socket.swift
/Users/admin/builder/spi-builder-workspace/Sources/Socket/Socket.swift:17:23: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |     /// Configuration for fine-tuning socket performance.
 17 |     public static var configuration: AsyncSocketConfiguration = AsyncSocketConfiguration() {
    |                       |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |         didSet {
 19 |             configuration.configureManager()
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:60:10: warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 58 |     // MARK: - Methods
 59 |
 60 |     func add(
    |          `- warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 61 |         _ fileDescriptor: SocketDescriptor
 62 |     ) -> Socket.Event.Stream {
/Users/admin/builder/spi-builder-workspace/Sources/Socket/Socket.swift:181:10: note: consider making enum 'Event' conform to the 'Sendable' protocol
179 |
180 |     /// Socket Event
181 |     enum Event {
    |          `- note: consider making enum 'Event' conform to the 'Sendable' protocol
182 |
183 |         /// New connection
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:165:33: warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
156 |     }
157 |
158 |     nonisolated func receiveMessage<Address: SocketAddress>(
    |                                     `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
159 |         _ length: Int,
160 |         fromAddressOf addressType: Address.Type,
    :
163 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
164 |         await log("Will receive message with \(length) bytes from \(fileDescriptor)")
165 |         return try await socket.receiveMessage(length, fromAddressOf: addressType)
    |                                 `- warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
166 |     }
167 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:185:33: warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
178 |
179 |     /// Accept a connection on a socket.
180 |     nonisolated func accept<Address: SocketAddress>(
    |                             `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
181 |         _ address: Address.Type,
182 |         for fileDescriptor: SocketDescriptor
183 |     ) async throws -> (fileDescriptor: SocketDescriptor, address: Address) {
184 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
185 |         return try await socket.accept(address)
    |                                 `- warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
186 |     }
187 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:194:32: warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
192 |     ) async throws {
193 |         let socket = try await socket(for: fileDescriptor)
194 |         try await retry(sleep: state.configuration.monitorInterval) {
    |                                `- warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
195 |             fileDescriptor._connect(to: address, retryOnInterrupt: true)
196 |         }.get()
    :
512 | extension AsyncSocketManager {
513 |
514 |     struct ManagerState {
    |            `- note: consider making struct 'ManagerState' conform to the 'Sendable' protocol
515 |
516 |         var configuration = AsyncSocketConfiguration()
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift:96:55: warning: capture of 'source' with non-sendable type 'CFRunLoopSource' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 94 |         // add to queue run loop
 95 |         configuration.queue.async {
 96 |             CFRunLoopAddSource(CFRunLoopGetCurrent(), source, CFRunLoopMode.commonModes)
    |                                                       `- warning: capture of 'source' with non-sendable type 'CFRunLoopSource' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 |         }
 98 |         fatalError()
CoreFoundation.CFRunLoopSource:1:14: note: class 'CFRunLoopSource' does not conform to the 'Sendable' protocol
1 | public class CFRunLoopSource : _CFObject {
  |              `- note: class 'CFRunLoopSource' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreFoundation'
  8 | #if canImport(Darwin)
  9 | import Foundation
 10 | import CoreFoundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreFoundation'
 11 | import Dispatch
 12 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketContinuation.swift:34:22: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
32 |         function: String = #function
33 |     ) {
34 |         continuation.resume(returning: value)
   |                      |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
   |                      `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
35 |     }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:39:9: warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 37 |
 38 |     public func configureManager() {
 39 |         Task {
    |         `- warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
 41 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:40:45: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 38 |     public func configureManager() {
 39 |         Task {
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
    |                                             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                             `- note: sending task-isolated 'self' to actor-isolated instance method 'updateConfiguration' risks causing data races between actor-isolated and task-isolated uses
 41 |         }
 42 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:146:33: warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
144 |         let socket = try await wait(for: .write, fileDescriptor: fileDescriptor)
145 |         await log("Will send message with \(data.count) bytes to \(fileDescriptor)")
146 |         return try await socket.sendMessage(data, to: address)
    |                                 |- warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: sending task-isolated 'address' to actor-isolated instance method 'sendMessage(_:to:)' risks causing data races between actor-isolated and task-isolated uses
147 |     }
148 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:487:22: warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
485 |         }
486 |         pendingEvents.insert(event)
487 |         continuation.yield(notification)
    |                      |- warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: 'self'-isolated 'notification' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
488 |     }
489 | }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift:35:9: warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 33 |
 34 |     public func configureManager() {
 35 |         Task {
    |         `- warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 36 |             await CFSocketManager.shared.setConfiguration(self)
 37 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift:36:42: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 34 |     public func configureManager() {
 35 |         Task {
 36 |             await CFSocketManager.shared.setConfiguration(self)
    |                                          |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending task-isolated 'self' to actor-isolated instance method 'setConfiguration' risks causing data races between actor-isolated and task-isolated uses
 37 |         }
 38 |     }
[69/72] Compiling Socket SocketContinuation.swift
/Users/admin/builder/spi-builder-workspace/Sources/Socket/Socket.swift:17:23: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |     /// Configuration for fine-tuning socket performance.
 17 |     public static var configuration: AsyncSocketConfiguration = AsyncSocketConfiguration() {
    |                       |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |         didSet {
 19 |             configuration.configureManager()
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:60:10: warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 58 |     // MARK: - Methods
 59 |
 60 |     func add(
    |          `- warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 61 |         _ fileDescriptor: SocketDescriptor
 62 |     ) -> Socket.Event.Stream {
/Users/admin/builder/spi-builder-workspace/Sources/Socket/Socket.swift:181:10: note: consider making enum 'Event' conform to the 'Sendable' protocol
179 |
180 |     /// Socket Event
181 |     enum Event {
    |          `- note: consider making enum 'Event' conform to the 'Sendable' protocol
182 |
183 |         /// New connection
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:165:33: warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
156 |     }
157 |
158 |     nonisolated func receiveMessage<Address: SocketAddress>(
    |                                     `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
159 |         _ length: Int,
160 |         fromAddressOf addressType: Address.Type,
    :
163 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
164 |         await log("Will receive message with \(length) bytes from \(fileDescriptor)")
165 |         return try await socket.receiveMessage(length, fromAddressOf: addressType)
    |                                 `- warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
166 |     }
167 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:185:33: warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
178 |
179 |     /// Accept a connection on a socket.
180 |     nonisolated func accept<Address: SocketAddress>(
    |                             `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
181 |         _ address: Address.Type,
182 |         for fileDescriptor: SocketDescriptor
183 |     ) async throws -> (fileDescriptor: SocketDescriptor, address: Address) {
184 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
185 |         return try await socket.accept(address)
    |                                 `- warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
186 |     }
187 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:194:32: warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
192 |     ) async throws {
193 |         let socket = try await socket(for: fileDescriptor)
194 |         try await retry(sleep: state.configuration.monitorInterval) {
    |                                `- warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
195 |             fileDescriptor._connect(to: address, retryOnInterrupt: true)
196 |         }.get()
    :
512 | extension AsyncSocketManager {
513 |
514 |     struct ManagerState {
    |            `- note: consider making struct 'ManagerState' conform to the 'Sendable' protocol
515 |
516 |         var configuration = AsyncSocketConfiguration()
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift:96:55: warning: capture of 'source' with non-sendable type 'CFRunLoopSource' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 94 |         // add to queue run loop
 95 |         configuration.queue.async {
 96 |             CFRunLoopAddSource(CFRunLoopGetCurrent(), source, CFRunLoopMode.commonModes)
    |                                                       `- warning: capture of 'source' with non-sendable type 'CFRunLoopSource' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 |         }
 98 |         fatalError()
CoreFoundation.CFRunLoopSource:1:14: note: class 'CFRunLoopSource' does not conform to the 'Sendable' protocol
1 | public class CFRunLoopSource : _CFObject {
  |              `- note: class 'CFRunLoopSource' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreFoundation'
  8 | #if canImport(Darwin)
  9 | import Foundation
 10 | import CoreFoundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreFoundation'
 11 | import Dispatch
 12 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketContinuation.swift:34:22: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
32 |         function: String = #function
33 |     ) {
34 |         continuation.resume(returning: value)
   |                      |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
   |                      `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
35 |     }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:39:9: warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 37 |
 38 |     public func configureManager() {
 39 |         Task {
    |         `- warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
 41 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:40:45: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 38 |     public func configureManager() {
 39 |         Task {
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
    |                                             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                             `- note: sending task-isolated 'self' to actor-isolated instance method 'updateConfiguration' risks causing data races between actor-isolated and task-isolated uses
 41 |         }
 42 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:146:33: warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
144 |         let socket = try await wait(for: .write, fileDescriptor: fileDescriptor)
145 |         await log("Will send message with \(data.count) bytes to \(fileDescriptor)")
146 |         return try await socket.sendMessage(data, to: address)
    |                                 |- warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: sending task-isolated 'address' to actor-isolated instance method 'sendMessage(_:to:)' risks causing data races between actor-isolated and task-isolated uses
147 |     }
148 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:487:22: warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
485 |         }
486 |         pendingEvents.insert(event)
487 |         continuation.yield(notification)
    |                      |- warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: 'self'-isolated 'notification' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
488 |     }
489 | }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift:35:9: warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 33 |
 34 |     public func configureManager() {
 35 |         Task {
    |         `- warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 36 |             await CFSocketManager.shared.setConfiguration(self)
 37 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift:36:42: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 34 |     public func configureManager() {
 35 |         Task {
 36 |             await CFSocketManager.shared.setConfiguration(self)
    |                                          |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending task-isolated 'self' to actor-isolated instance method 'setConfiguration' risks causing data races between actor-isolated and task-isolated uses
 37 |         }
 38 |     }
[70/72] Compiling Socket SocketManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/Socket/Socket.swift:17:23: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |     /// Configuration for fine-tuning socket performance.
 17 |     public static var configuration: AsyncSocketConfiguration = AsyncSocketConfiguration() {
    |                       |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |         didSet {
 19 |             configuration.configureManager()
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:60:10: warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 58 |     // MARK: - Methods
 59 |
 60 |     func add(
    |          `- warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 61 |         _ fileDescriptor: SocketDescriptor
 62 |     ) -> Socket.Event.Stream {
/Users/admin/builder/spi-builder-workspace/Sources/Socket/Socket.swift:181:10: note: consider making enum 'Event' conform to the 'Sendable' protocol
179 |
180 |     /// Socket Event
181 |     enum Event {
    |          `- note: consider making enum 'Event' conform to the 'Sendable' protocol
182 |
183 |         /// New connection
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:165:33: warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
156 |     }
157 |
158 |     nonisolated func receiveMessage<Address: SocketAddress>(
    |                                     `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
159 |         _ length: Int,
160 |         fromAddressOf addressType: Address.Type,
    :
163 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
164 |         await log("Will receive message with \(length) bytes from \(fileDescriptor)")
165 |         return try await socket.receiveMessage(length, fromAddressOf: addressType)
    |                                 `- warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
166 |     }
167 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:185:33: warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
178 |
179 |     /// Accept a connection on a socket.
180 |     nonisolated func accept<Address: SocketAddress>(
    |                             `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
181 |         _ address: Address.Type,
182 |         for fileDescriptor: SocketDescriptor
183 |     ) async throws -> (fileDescriptor: SocketDescriptor, address: Address) {
184 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
185 |         return try await socket.accept(address)
    |                                 `- warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
186 |     }
187 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:194:32: warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
192 |     ) async throws {
193 |         let socket = try await socket(for: fileDescriptor)
194 |         try await retry(sleep: state.configuration.monitorInterval) {
    |                                `- warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
195 |             fileDescriptor._connect(to: address, retryOnInterrupt: true)
196 |         }.get()
    :
512 | extension AsyncSocketManager {
513 |
514 |     struct ManagerState {
    |            `- note: consider making struct 'ManagerState' conform to the 'Sendable' protocol
515 |
516 |         var configuration = AsyncSocketConfiguration()
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift:96:55: warning: capture of 'source' with non-sendable type 'CFRunLoopSource' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 94 |         // add to queue run loop
 95 |         configuration.queue.async {
 96 |             CFRunLoopAddSource(CFRunLoopGetCurrent(), source, CFRunLoopMode.commonModes)
    |                                                       `- warning: capture of 'source' with non-sendable type 'CFRunLoopSource' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 |         }
 98 |         fatalError()
CoreFoundation.CFRunLoopSource:1:14: note: class 'CFRunLoopSource' does not conform to the 'Sendable' protocol
1 | public class CFRunLoopSource : _CFObject {
  |              `- note: class 'CFRunLoopSource' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreFoundation'
  8 | #if canImport(Darwin)
  9 | import Foundation
 10 | import CoreFoundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreFoundation'
 11 | import Dispatch
 12 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketContinuation.swift:34:22: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
32 |         function: String = #function
33 |     ) {
34 |         continuation.resume(returning: value)
   |                      |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
   |                      `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
35 |     }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:39:9: warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 37 |
 38 |     public func configureManager() {
 39 |         Task {
    |         `- warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
 41 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:40:45: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 38 |     public func configureManager() {
 39 |         Task {
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
    |                                             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                             `- note: sending task-isolated 'self' to actor-isolated instance method 'updateConfiguration' risks causing data races between actor-isolated and task-isolated uses
 41 |         }
 42 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:146:33: warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
144 |         let socket = try await wait(for: .write, fileDescriptor: fileDescriptor)
145 |         await log("Will send message with \(data.count) bytes to \(fileDescriptor)")
146 |         return try await socket.sendMessage(data, to: address)
    |                                 |- warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: sending task-isolated 'address' to actor-isolated instance method 'sendMessage(_:to:)' risks causing data races between actor-isolated and task-isolated uses
147 |     }
148 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:487:22: warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
485 |         }
486 |         pendingEvents.insert(event)
487 |         continuation.yield(notification)
    |                      |- warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: 'self'-isolated 'notification' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
488 |     }
489 | }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift:35:9: warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 33 |
 34 |     public func configureManager() {
 35 |         Task {
    |         `- warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 36 |             await CFSocketManager.shared.setConfiguration(self)
 37 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift:36:42: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 34 |     public func configureManager() {
 35 |         Task {
 36 |             await CFSocketManager.shared.setConfiguration(self)
    |                                          |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending task-isolated 'self' to actor-isolated instance method 'setConfiguration' risks causing data races between actor-isolated and task-isolated uses
 37 |         }
 38 |     }
[71/72] Compiling Socket AsyncSocketManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/Socket/Socket.swift:17:23: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |     /// Configuration for fine-tuning socket performance.
 17 |     public static var configuration: AsyncSocketConfiguration = AsyncSocketConfiguration() {
    |                       |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |         didSet {
 19 |             configuration.configureManager()
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:60:10: warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 58 |     // MARK: - Methods
 59 |
 60 |     func add(
    |          `- warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 61 |         _ fileDescriptor: SocketDescriptor
 62 |     ) -> Socket.Event.Stream {
/Users/admin/builder/spi-builder-workspace/Sources/Socket/Socket.swift:181:10: note: consider making enum 'Event' conform to the 'Sendable' protocol
179 |
180 |     /// Socket Event
181 |     enum Event {
    |          `- note: consider making enum 'Event' conform to the 'Sendable' protocol
182 |
183 |         /// New connection
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:165:33: warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
156 |     }
157 |
158 |     nonisolated func receiveMessage<Address: SocketAddress>(
    |                                     `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
159 |         _ length: Int,
160 |         fromAddressOf addressType: Address.Type,
    :
163 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
164 |         await log("Will receive message with \(length) bytes from \(fileDescriptor)")
165 |         return try await socket.receiveMessage(length, fromAddressOf: addressType)
    |                                 `- warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
166 |     }
167 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:185:33: warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
178 |
179 |     /// Accept a connection on a socket.
180 |     nonisolated func accept<Address: SocketAddress>(
    |                             `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
181 |         _ address: Address.Type,
182 |         for fileDescriptor: SocketDescriptor
183 |     ) async throws -> (fileDescriptor: SocketDescriptor, address: Address) {
184 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
185 |         return try await socket.accept(address)
    |                                 `- warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
186 |     }
187 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:194:32: warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
192 |     ) async throws {
193 |         let socket = try await socket(for: fileDescriptor)
194 |         try await retry(sleep: state.configuration.monitorInterval) {
    |                                `- warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
195 |             fileDescriptor._connect(to: address, retryOnInterrupt: true)
196 |         }.get()
    :
512 | extension AsyncSocketManager {
513 |
514 |     struct ManagerState {
    |            `- note: consider making struct 'ManagerState' conform to the 'Sendable' protocol
515 |
516 |         var configuration = AsyncSocketConfiguration()
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift:96:55: warning: capture of 'source' with non-sendable type 'CFRunLoopSource' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 94 |         // add to queue run loop
 95 |         configuration.queue.async {
 96 |             CFRunLoopAddSource(CFRunLoopGetCurrent(), source, CFRunLoopMode.commonModes)
    |                                                       `- warning: capture of 'source' with non-sendable type 'CFRunLoopSource' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 |         }
 98 |         fatalError()
CoreFoundation.CFRunLoopSource:1:14: note: class 'CFRunLoopSource' does not conform to the 'Sendable' protocol
1 | public class CFRunLoopSource : _CFObject {
  |              `- note: class 'CFRunLoopSource' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreFoundation'
  8 | #if canImport(Darwin)
  9 | import Foundation
 10 | import CoreFoundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreFoundation'
 11 | import Dispatch
 12 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketContinuation.swift:34:22: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
32 |         function: String = #function
33 |     ) {
34 |         continuation.resume(returning: value)
   |                      |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
   |                      `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
35 |     }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:39:9: warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 37 |
 38 |     public func configureManager() {
 39 |         Task {
    |         `- warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
 41 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:40:45: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 38 |     public func configureManager() {
 39 |         Task {
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
    |                                             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                             `- note: sending task-isolated 'self' to actor-isolated instance method 'updateConfiguration' risks causing data races between actor-isolated and task-isolated uses
 41 |         }
 42 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:146:33: warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
144 |         let socket = try await wait(for: .write, fileDescriptor: fileDescriptor)
145 |         await log("Will send message with \(data.count) bytes to \(fileDescriptor)")
146 |         return try await socket.sendMessage(data, to: address)
    |                                 |- warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: sending task-isolated 'address' to actor-isolated instance method 'sendMessage(_:to:)' risks causing data races between actor-isolated and task-isolated uses
147 |     }
148 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:487:22: warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
485 |         }
486 |         pendingEvents.insert(event)
487 |         continuation.yield(notification)
    |                      |- warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: 'self'-isolated 'notification' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
488 |     }
489 | }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift:35:9: warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 33 |
 34 |     public func configureManager() {
 35 |         Task {
    |         `- warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 36 |             await CFSocketManager.shared.setConfiguration(self)
 37 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift:36:42: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 34 |     public func configureManager() {
 35 |         Task {
 36 |             await CFSocketManager.shared.setConfiguration(self)
    |                                          |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending task-isolated 'self' to actor-isolated instance method 'setConfiguration' risks causing data races between actor-isolated and task-isolated uses
 37 |         }
 38 |     }
[72/72] Compiling Socket CFSocketManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/Socket/Socket.swift:17:23: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 15 |
 16 |     /// Configuration for fine-tuning socket performance.
 17 |     public static var configuration: AsyncSocketConfiguration = AsyncSocketConfiguration() {
    |                       |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'configuration' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 18 |         didSet {
 19 |             configuration.configureManager()
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:60:10: warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 58 |     // MARK: - Methods
 59 |
 60 |     func add(
    |          `- warning: non-sendable type 'Socket.Event.Stream' (aka 'AsyncStream<Socket.Event>') returned by actor-isolated instance method 'add' satisfying protocol requirement cannot cross actor boundary; this is an error in the Swift 6 language mode
 61 |         _ fileDescriptor: SocketDescriptor
 62 |     ) -> Socket.Event.Stream {
/Users/admin/builder/spi-builder-workspace/Sources/Socket/Socket.swift:181:10: note: consider making enum 'Event' conform to the 'Sendable' protocol
179 |
180 |     /// Socket Event
181 |     enum Event {
    |          `- note: consider making enum 'Event' conform to the 'Sendable' protocol
182 |
183 |         /// New connection
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:165:33: warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
156 |     }
157 |
158 |     nonisolated func receiveMessage<Address: SocketAddress>(
    |                                     `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
159 |         _ length: Int,
160 |         fromAddressOf addressType: Address.Type,
    :
163 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
164 |         await log("Will receive message with \(length) bytes from \(fileDescriptor)")
165 |         return try await socket.receiveMessage(length, fromAddressOf: addressType)
    |                                 `- warning: non-sendable type '(Data, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
166 |     }
167 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:185:33: warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
178 |
179 |     /// Accept a connection on a socket.
180 |     nonisolated func accept<Address: SocketAddress>(
    |                             `- note: consider making generic parameter 'Address' conform to the 'Sendable' protocol
181 |         _ address: Address.Type,
182 |         for fileDescriptor: SocketDescriptor
183 |     ) async throws -> (fileDescriptor: SocketDescriptor, address: Address) {
184 |         let socket = try await wait(for: .read, fileDescriptor: fileDescriptor)
185 |         return try await socket.accept(address)
    |                                 `- warning: non-sendable type '(SocketDescriptor, Address)' returned by call to actor-isolated function cannot cross actor boundary; this is an error in the Swift 6 language mode
186 |     }
187 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:194:32: warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
192 |     ) async throws {
193 |         let socket = try await socket(for: fileDescriptor)
194 |         try await retry(sleep: state.configuration.monitorInterval) {
    |                                `- warning: non-sendable type 'AsyncSocketManager.ManagerState' in implicitly asynchronous access to actor-isolated property 'state' cannot cross actor boundary; this is an error in the Swift 6 language mode
195 |             fileDescriptor._connect(to: address, retryOnInterrupt: true)
196 |         }.get()
    :
512 | extension AsyncSocketManager {
513 |
514 |     struct ManagerState {
    |            `- note: consider making struct 'ManagerState' conform to the 'Sendable' protocol
515 |
516 |         var configuration = AsyncSocketConfiguration()
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift:96:55: warning: capture of 'source' with non-sendable type 'CFRunLoopSource' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 94 |         // add to queue run loop
 95 |         configuration.queue.async {
 96 |             CFRunLoopAddSource(CFRunLoopGetCurrent(), source, CFRunLoopMode.commonModes)
    |                                                       `- warning: capture of 'source' with non-sendable type 'CFRunLoopSource' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 97 |         }
 98 |         fatalError()
CoreFoundation.CFRunLoopSource:1:14: note: class 'CFRunLoopSource' does not conform to the 'Sendable' protocol
1 | public class CFRunLoopSource : _CFObject {
  |              `- note: class 'CFRunLoopSource' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreFoundation'
  8 | #if canImport(Darwin)
  9 | import Foundation
 10 | import CoreFoundation
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'CoreFoundation'
 11 | import Dispatch
 12 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketContinuation.swift:34:22: warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
32 |         function: String = #function
33 |     ) {
34 |         continuation.resume(returning: value)
   |                      |- warning: sending 'value' risks causing data races; this is an error in the Swift 6 language mode
   |                      `- note: task-isolated 'value' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
35 |     }
36 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:39:9: warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 37 |
 38 |     public func configureManager() {
 39 |         Task {
    |         `- warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
 41 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:40:45: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 38 |     public func configureManager() {
 39 |         Task {
 40 |             await AsyncSocketManager.shared.updateConfiguration(self)
    |                                             |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                             `- note: sending task-isolated 'self' to actor-isolated instance method 'updateConfiguration' risks causing data races between actor-isolated and task-isolated uses
 41 |         }
 42 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:146:33: warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
144 |         let socket = try await wait(for: .write, fileDescriptor: fileDescriptor)
145 |         await log("Will send message with \(data.count) bytes to \(fileDescriptor)")
146 |         return try await socket.sendMessage(data, to: address)
    |                                 |- warning: sending 'address' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: sending task-isolated 'address' to actor-isolated instance method 'sendMessage(_:to:)' risks causing data races between actor-isolated and task-isolated uses
147 |     }
148 |
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:487:22: warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
485 |         }
486 |         pendingEvents.insert(event)
487 |         continuation.yield(notification)
    |                      |- warning: sending 'notification' risks causing data races; this is an error in the Swift 6 language mode
    |                      `- note: 'self'-isolated 'notification' is passed as a 'sending' parameter; Uses in callee may race with later 'self'-isolated uses
488 |     }
489 | }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift:35:9: warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 33 |
 34 |     public func configureManager() {
 35 |         Task {
    |         `- warning: task-isolated value of type '() async -> ()' passed as a strongly transferred parameter; later accesses could race; this is an error in the Swift 6 language mode
 36 |             await CFSocketManager.shared.setConfiguration(self)
 37 |         }
/Users/admin/builder/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift:36:42: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
 34 |     public func configureManager() {
 35 |         Task {
 36 |             await CFSocketManager.shared.setConfiguration(self)
    |                                          |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
    |                                          `- note: sending task-isolated 'self' to actor-isolated instance method 'setConfiguration' risks causing data races between actor-isolated and task-isolated uses
 37 |         }
 38 |     }
Build complete! (16.15s)
Fetching https://github.com/apple/swift-system
[1/3638] Fetching swift-system
Fetched https://github.com/apple/swift-system from cache (1.01s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.3.2 (0.51s)
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.3.2
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-system",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.2.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-system"
    }
  ],
  "manifest_display_name" : "Socket",
  "name" : "Socket",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "tvos",
      "version" : "13.0"
    }
  ],
  "products" : [
    {
      "name" : "Socket",
      "targets" : [
        "Socket"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SocketTests",
      "module_type" : "SwiftTarget",
      "name" : "SocketTests",
      "path" : "Tests/SocketTests",
      "sources" : [
        "SocketTests.swift"
      ],
      "target_dependencies" : [
        "Socket"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Socket",
      "module_type" : "SwiftTarget",
      "name" : "Socket",
      "path" : "Sources/Socket",
      "product_dependencies" : [
        "SystemPackage"
      ],
      "product_memberships" : [
        "Socket"
      ],
      "sources" : [
        "Socket.swift",
        "SocketContinuation.swift",
        "SocketManager.swift",
        "SocketManager/AsyncSocketManager.swift",
        "SocketManager/CFSocketManager.swift",
        "System/CInternetAddress.swift",
        "System/CInterop.swift",
        "System/CSocketAddress.swift",
        "System/Constants.swift",
        "System/Errno.swift",
        "System/FileChange.swift",
        "System/FileEvent.swift",
        "System/FileFlags.swift",
        "System/InputOutput/IOControl.swift",
        "System/InputOutput/IODirection.swift",
        "System/InputOutput/IOOperations.swift",
        "System/InputOutput/IOType.swift",
        "System/InternetProtocol.swift",
        "System/MessageFlags.swift",
        "System/NetworkInterface.swift",
        "System/NetworkOrder.swift",
        "System/Poll.swift",
        "System/SocketAddress.swift",
        "System/SocketAddress/IPv4SocketAddress.swift",
        "System/SocketAddress/IPv6SocketAddress.swift",
        "System/SocketAddress/LinkLayerSocketAddress.swift",
        "System/SocketAddress/UnixSocketAddress.swift",
        "System/SocketAddressFamily.swift",
        "System/SocketDescriptor.swift",
        "System/SocketFlags.swift",
        "System/SocketHelpers.swift",
        "System/SocketOperations.swift",
        "System/SocketOption.swift",
        "System/SocketOptionID.swift",
        "System/SocketOptionLevel.swift",
        "System/SocketProtocol.swift",
        "System/SocketProtocol/IPv4Protocol.swift",
        "System/SocketProtocol/IPv6Protocol.swift",
        "System/SocketProtocol/LinkLayerProtocol.swift",
        "System/SocketProtocol/UnixProtocol.swift",
        "System/SocketType.swift",
        "System/Syscalls.swift",
        "System/Util.swift"
      ],
      "target_dependencies" : [
        "CSocket"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CSocket",
      "module_type" : "ClangTarget",
      "name" : "CSocket",
      "path" : "Sources/CSocket",
      "product_memberships" : [
        "Socket"
      ],
      "sources" : [
        "shims.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.