Build Information
Successful build of AwesomeWS with Swift 6.0 for macOS (SPM).
Swift 6 data race errors: 4
Build Command
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
[1745/1791] Compiling Vapor ResponseCodable.swift
[1746/1791] Compiling Vapor Application+Routes.swift
[1747/1791] Compiling Vapor Parameters+Require.swift
[1748/1791] Compiling Vapor Request+WebSocket.swift
[1749/1791] Compiling Vapor Application.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h"
| `- note: in file included from <module-includes>:1:
2 |
[1750/1791] Compiling Vapor AuthenticationCache.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h"
| `- note: in file included from <module-includes>:1:
2 |
[1751/1791] Compiling Vapor Authenticator.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h"
| `- note: in file included from <module-includes>:1:
2 |
[1752/1791] Compiling Vapor BasicAuthorization.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h"
| `- note: in file included from <module-includes>:1:
2 |
[1753/1791] Compiling Vapor BearerAuthorization.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h"
| `- note: in file included from <module-includes>:1:
2 |
[1754/1791] Compiling Vapor GuardMiddleware.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h"
| `- note: in file included from <module-includes>:1:
2 |
[1755/1791] Compiling Vapor RedirectMiddleware.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h"
| `- note: in file included from <module-includes>:1:
2 |
[1756/1791] Compiling Vapor SessionAuthenticatable.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h"
| `- note: in file included from <module-includes>:1:
2 |
[1757/1791] Compiling Vapor Bcrypt.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h"
| `- note: in file included from <module-includes>:1:
2 |
[1758/1791] Compiling Vapor Application+Cache.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h"
| `- note: in file included from <module-includes>:1:
2 |
[1759/1791] Compiling Vapor Cache.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h"
| `- note: in file included from <module-includes>:1:
2 |
[1760/1791] Compiling Vapor CacheExpirationTime.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h"
| `- note: in file included from <module-includes>:1:
2 |
[1761/1791] Compiling Vapor MemoryCache.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h"
| `- note: in file included from <module-includes>:1:
2 |
[1762/1791] Compiling Vapor Request+Cache.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h"
| `- note: in file included from <module-includes>:1:
2 |
[1763/1791] Compiling Vapor Application+Clients.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h"
| `- note: in file included from <module-includes>:1:
2 |
[1764/1791] Compiling Vapor Client.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h"
| `- note: in file included from <module-includes>:1:
2 |
[1765/1791] Compiling Vapor ClientRequest.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h"
| `- note: in file included from <module-includes>:1:
2 |
[1766/1791] Compiling Vapor ClientResponse.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h"
| `- note: in file included from <module-includes>:1:
2 |
[1767/1791] Compiling Vapor Request+Client.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h"
| `- note: in file included from <module-includes>:1:
2 |
[1768/1791] Compiling Vapor BootCommand.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h"
| `- note: in file included from <module-includes>:1:
2 |
[1769/1791] Compiling Vapor CommandContext+Application.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h"
| `- note: in file included from <module-includes>:1:
2 |
[1770/1791] Compiling Vapor RoutesCommand.swift
[1771/1791] Compiling Vapor ServeCommand.swift
[1772/1791] Compiling Vapor AnyResponse+Concurrency.swift
[1773/1791] Compiling Vapor AsyncBasicResponder.swift
[1774/1791] Compiling Vapor AsyncMiddleware.swift
[1775/1791] Compiling Vapor AsyncPasswordHasher+Concurrency.swift
[1776/1791] Compiling Vapor AsyncSessionDriver.swift
[1777/1791] Compiling Vapor Authentication+Concurrency.swift
[1778/1791] Compiling Vapor Cache+Concurrency.swift
[1779/1791] Compiling Vapor Client+Concurrency.swift
[1780/1791] Compiling Vapor RequestBody+Concurrency.swift
[1781/1791] Compiling Vapor Responder+Concurrency.swift
[1782/1791] Compiling Vapor ResponseCodable+Concurrency.swift
[1783/1791] Compiling Vapor RoutesBuilder+Concurrency.swift
[1784/1791] Compiling Vapor ViewRenderer+Concurrency.swift
[1785/1791] Compiling Vapor WebSocket+Concurrency.swift
[1786/1791] Compiling Vapor ContainerGetPathExecutor.swift
[1787/1791] Compiling Vapor Content.swift
[1788/1791] Compiling Vapor ContentCoders.swift
[1789/1791] Compiling Vapor ContentConfiguration.swift
[1790/1791] Compiling Vapor ContentContainer.swift
[1791/1791] Emitting module Vapor
[1792/1820] Compiling WS Disconnectable.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Disconnectable.swift:27:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | func _disconnect() -> EventLoopFuture<Void> {
26 | eventLoop.future().flatMap {
27 | self._disconnect(code: .goingAway)
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | }
29 | }
[1793/1820] Compiling WS Encoder.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Disconnectable.swift:27:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | func _disconnect() -> EventLoopFuture<Void> {
26 | eventLoop.future().flatMap {
27 | self._disconnect(code: .goingAway)
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | }
29 | }
[1794/1820] Compiling WS Loggable.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Disconnectable.swift:27:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
25 | func _disconnect() -> EventLoopFuture<Void> {
26 | eventLoop.future().flatMap {
27 | self._disconnect(code: .goingAway)
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 | }
29 | }
[1795/1823] Compiling WS ClassicObserver.swift
[1796/1823] Compiling WS DeclarativeObserver.swift
[1797/1823] Compiling WS AnyClient.swift
[1798/1823] Compiling WS Configurator.swift
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/Configurator.swift:54:12: warning: type 'any Configurator.DefaultWSIDKey.Value' (aka 'any AnyWSID') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 | }
53 |
54 | struct DefaultWSIDKey: StorageKey {
| `- warning: type 'any Configurator.DefaultWSIDKey.Value' (aka 'any AnyWSID') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | typealias Value = AnyWSID
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/WSID.swift:3:17: note: protocol 'AnyWSID' does not conform to the 'Sendable' protocol
1 | import Vapor
2 |
3 | public protocol AnyWSID {
| `- note: protocol 'AnyWSID' does not conform to the 'Sendable' protocol
4 | var key: String { get }
5 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/Configurator.swift:69:12: warning: type 'any Configurator.DefaultEncoderKey.Value' (aka 'any Encoder') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
67 | // MARK: - Default Encoder
68 |
69 | struct DefaultEncoderKey: StorageKey {
| `- warning: type 'any Configurator.DefaultEncoderKey.Value' (aka 'any Encoder') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
70 | typealias Value = Encoder
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Encoder.swift:3:17: note: protocol 'Encoder' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol Encoder {
| `- note: protocol 'Encoder' does not conform to the 'Sendable' protocol
4 | func encode<T>(_ value: T) throws -> Data where T : Encodable
5 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/Configurator.swift:85:12: warning: type 'any Configurator.DefaultDecoderKey.Value' (aka 'any Decoder') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
83 | // MARK: - Default Decoder
84 |
85 | struct DefaultDecoderKey: StorageKey {
| `- warning: type 'any Configurator.DefaultDecoderKey.Value' (aka 'any Decoder') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
86 | typealias Value = Decoder
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Decoder.swift:3:17: note: protocol 'Decoder' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol Decoder {
| `- note: protocol 'Decoder' does not conform to the 'Sendable' protocol
4 | func decode<T>(_ type: T.Type, from data: Data) throws -> T where T : Decodable
5 | }
[1799/1823] Compiling WS EID.swift
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/Configurator.swift:54:12: warning: type 'any Configurator.DefaultWSIDKey.Value' (aka 'any AnyWSID') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 | }
53 |
54 | struct DefaultWSIDKey: StorageKey {
| `- warning: type 'any Configurator.DefaultWSIDKey.Value' (aka 'any AnyWSID') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | typealias Value = AnyWSID
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/WSID.swift:3:17: note: protocol 'AnyWSID' does not conform to the 'Sendable' protocol
1 | import Vapor
2 |
3 | public protocol AnyWSID {
| `- note: protocol 'AnyWSID' does not conform to the 'Sendable' protocol
4 | var key: String { get }
5 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/Configurator.swift:69:12: warning: type 'any Configurator.DefaultEncoderKey.Value' (aka 'any Encoder') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
67 | // MARK: - Default Encoder
68 |
69 | struct DefaultEncoderKey: StorageKey {
| `- warning: type 'any Configurator.DefaultEncoderKey.Value' (aka 'any Encoder') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
70 | typealias Value = Encoder
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Encoder.swift:3:17: note: protocol 'Encoder' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol Encoder {
| `- note: protocol 'Encoder' does not conform to the 'Sendable' protocol
4 | func encode<T>(_ value: T) throws -> Data where T : Encodable
5 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/Configurator.swift:85:12: warning: type 'any Configurator.DefaultDecoderKey.Value' (aka 'any Decoder') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
83 | // MARK: - Default Decoder
84 |
85 | struct DefaultDecoderKey: StorageKey {
| `- warning: type 'any Configurator.DefaultDecoderKey.Value' (aka 'any Decoder') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
86 | typealias Value = Decoder
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Decoder.swift:3:17: note: protocol 'Decoder' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol Decoder {
| `- note: protocol 'Decoder' does not conform to the 'Sendable' protocol
4 | func decode<T>(_ type: T.Type, from data: Data) throws -> T where T : Decodable
5 | }
[1800/1823] Compiling WS Event.swift
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/Configurator.swift:54:12: warning: type 'any Configurator.DefaultWSIDKey.Value' (aka 'any AnyWSID') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 | }
53 |
54 | struct DefaultWSIDKey: StorageKey {
| `- warning: type 'any Configurator.DefaultWSIDKey.Value' (aka 'any AnyWSID') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | typealias Value = AnyWSID
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/WSID.swift:3:17: note: protocol 'AnyWSID' does not conform to the 'Sendable' protocol
1 | import Vapor
2 |
3 | public protocol AnyWSID {
| `- note: protocol 'AnyWSID' does not conform to the 'Sendable' protocol
4 | var key: String { get }
5 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/Configurator.swift:69:12: warning: type 'any Configurator.DefaultEncoderKey.Value' (aka 'any Encoder') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
67 | // MARK: - Default Encoder
68 |
69 | struct DefaultEncoderKey: StorageKey {
| `- warning: type 'any Configurator.DefaultEncoderKey.Value' (aka 'any Encoder') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
70 | typealias Value = Encoder
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Encoder.swift:3:17: note: protocol 'Encoder' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol Encoder {
| `- note: protocol 'Encoder' does not conform to the 'Sendable' protocol
4 | func encode<T>(_ value: T) throws -> Data where T : Encodable
5 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/Configurator.swift:85:12: warning: type 'any Configurator.DefaultDecoderKey.Value' (aka 'any Decoder') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
83 | // MARK: - Default Decoder
84 |
85 | struct DefaultDecoderKey: StorageKey {
| `- warning: type 'any Configurator.DefaultDecoderKey.Value' (aka 'any Decoder') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
86 | typealias Value = Decoder
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Decoder.swift:3:17: note: protocol 'Decoder' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol Decoder {
| `- note: protocol 'Decoder' does not conform to the 'Sendable' protocol
4 | func decode<T>(_ type: T.Type, from data: Data) throws -> T where T : Decodable
5 | }
[1801/1823] Compiling WS Client.swift
[1802/1823] Compiling WS BaseObserver.swift
[1803/1823] Compiling WS BindableObserver.swift
[1804/1823] Emitting module WS
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/Configurator.swift:54:12: warning: type 'any Configurator.DefaultWSIDKey.Value' (aka 'any AnyWSID') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
52 | }
53 |
54 | struct DefaultWSIDKey: StorageKey {
| `- warning: type 'any Configurator.DefaultWSIDKey.Value' (aka 'any AnyWSID') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
55 | typealias Value = AnyWSID
56 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/WSID.swift:3:17: note: protocol 'AnyWSID' does not conform to the 'Sendable' protocol
1 | import Vapor
2 |
3 | public protocol AnyWSID {
| `- note: protocol 'AnyWSID' does not conform to the 'Sendable' protocol
4 | var key: String { get }
5 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/Configurator.swift:69:12: warning: type 'any Configurator.DefaultEncoderKey.Value' (aka 'any Encoder') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
67 | // MARK: - Default Encoder
68 |
69 | struct DefaultEncoderKey: StorageKey {
| `- warning: type 'any Configurator.DefaultEncoderKey.Value' (aka 'any Encoder') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
70 | typealias Value = Encoder
71 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Encoder.swift:3:17: note: protocol 'Encoder' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol Encoder {
| `- note: protocol 'Encoder' does not conform to the 'Sendable' protocol
4 | func encode<T>(_ value: T) throws -> Data where T : Encodable
5 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/Configurator.swift:85:12: warning: type 'any Configurator.DefaultDecoderKey.Value' (aka 'any Decoder') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
83 | // MARK: - Default Decoder
84 |
85 | struct DefaultDecoderKey: StorageKey {
| `- warning: type 'any Configurator.DefaultDecoderKey.Value' (aka 'any Decoder') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
86 | typealias Value = Decoder
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Decoder.swift:3:17: note: protocol 'Decoder' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol Decoder {
| `- note: protocol 'Decoder' does not conform to the 'Sendable' protocol
4 | func decode<T>(_ type: T.Type, from data: Data) throws -> T where T : Decodable
5 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:3:30: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
1 | import Vapor
2 |
3 | public protocol AnyObserver: class, Broadcastable, CustomStringConvertible, Disconnectable, Sendable, Loggable {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
4 | var key: String { get }
5 | var path: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:25:34: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
23 | }
24 |
25 | internal protocol _Subscribable: class, Subscribable {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
26 | var eventLoop: EventLoop { get }
27 | var clients: [_AnyClient] { get }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/DefaultDateFormatter.swift:3:7: warning: class 'DefaultDateFormatter' must restate inherited '@unchecked Sendable' conformance
1 | import Foundation
2 |
3 | class DefaultDateFormatter: DateFormatter {
| `- warning: class 'DefaultDateFormatter' must restate inherited '@unchecked Sendable' conformance
4 | func setup() {
5 | self.calendar = Calendar(identifier: .iso8601)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/Storage.swift:7:12: warning: type '_Storage.Key.Value' (aka '_Storage') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
2 | import Vapor
3 |
4 | class _Storage {
| `- note: class '_Storage' does not conform to the 'Sendable' protocol
5 | var items: [String: AnyObserver] = [:]
6 |
7 | struct Key: StorageKey {
| `- warning: type '_Storage.Key.Value' (aka '_Storage') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | typealias Value = _Storage
9 | }
[1805/1823] Compiling WS ExchangeMode.swift
[1806/1823] Compiling WS Application+Configurator.swift
[1807/1823] Compiling WS HTTPServerConfiguration+Address.swift
[1808/1823] Compiling WS Request+Observer.swift
[1809/1823] Compiling WS Declarativable.swift
[1810/1823] Compiling WS Decoder.swift
[1811/1823] Compiling WS Delegate.swift
[1812/1823] Compiling WS AnyObserver.swift
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:3:30: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
1 | import Vapor
2 |
3 | public protocol AnyObserver: class, Broadcastable, CustomStringConvertible, Disconnectable, Sendable, Loggable {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
4 | var key: String { get }
5 | var path: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:130:12: warning: 'onPing' is deprecated: Please use `onPing { socket, data in /* … */ }` with the additional `data` parameter.
128 | }
129 |
130 | ws.onPing { [weak self] _ in
| `- warning: 'onPing' is deprecated: Please use `onPing { socket, data in /* … */ }` with the additional `data` parameter.
131 | guard let client = client else { return }
132 | self?.logger.debug("[⚡️] 🏓 ping \(client.id)")
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:137:12: warning: 'onPong' is deprecated: Please use `onPong { socket, data in /* … */ }` with the additional `data` parameter.
135 | }
136 |
137 | ws.onPong { [weak self] _ in
| `- warning: 'onPong' is deprecated: Please use `onPong { socket, data in /* … */ }` with the additional `data` parameter.
138 | guard let client = client else { return }
139 | self?.logger.debug("[⚡️] 🏓 pong \(client.id)")
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:103:30: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
101 |
102 | self.application.ws.knownEventLoop.submit { [weak self] in
103 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 | let c = Client(self, req, ws, logger: self.logger)
105 | client = c
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:105:13: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | guard let self = self else { return }
104 | let c = Client(self, req, ws, logger: self.logger)
105 | client = c
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | self._clients.append(c)
107 | }.whenComplete { [weak self] _ in
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:105:13: warning: mutation of captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
103 | guard let self = self else { return }
104 | let c = Client(self, req, ws, logger: self.logger)
105 | client = c
| `- warning: mutation of captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
106 | self._clients.append(c)
107 | }.whenComplete { [weak self] _ in
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:109:30: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | }.whenComplete { [weak self] _ in
108 | guard
109 | let client = client,
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
110 | let self = self
111 | else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:110:28: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 | guard
109 | let client = client,
110 | let self = self
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | else { return }
112 | self._on(open: client)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:109:30: warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
107 | }.whenComplete { [weak self] _ in
108 | guard
109 | let client = client,
| `- warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
110 | let self = self
111 | else { return }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:118:30: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
116 |
117 | ws.onClose.whenComplete { [weak self] _ in
118 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
119 | self.application.ws.knownEventLoop.submit { [weak self] in
120 | self?._clients.removeAll(where: { $0 === client })
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:120:58: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | guard let self = self else { return }
119 | self.application.ws.knownEventLoop.submit { [weak self] in
120 | self?._clients.removeAll(where: { $0 === client })
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:120:17: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | guard let self = self else { return }
119 | self.application.ws.knownEventLoop.submit { [weak self] in
120 | self?._clients.removeAll(where: { $0 === client })
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:120:58: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | guard let self = self else { return }
119 | self.application.ws.knownEventLoop.submit { [weak self] in
120 | self?._clients.removeAll(where: { $0 === client })
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:120:58: warning: capture of 'client' with non-sendable type 'Client?' in an isolated closure; this is an error in the Swift 6 language mode
118 | guard let self = self else { return }
119 | self.application.ws.knownEventLoop.submit { [weak self] in
120 | self?._clients.removeAll(where: { $0 === client })
| `- warning: capture of 'client' with non-sendable type 'Client?' in an isolated closure; this is an error in the Swift 6 language mode
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:120:58: warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
118 | guard let self = self else { return }
119 | self.application.ws.knownEventLoop.submit { [weak self] in
120 | self?._clients.removeAll(where: { $0 === client })
| `- warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:122:31: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | self?._clients.removeAll(where: { $0 === client })
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | self.logger.info("[⚡️] 🔴 connection closed \(c.id)")
124 | self._on(close: c)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:122:50: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | self?._clients.removeAll(where: { $0 === client })
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | self.logger.info("[⚡️] 🔴 connection closed \(c.id)")
124 | self._on(close: c)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:122:31: warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
120 | self?._clients.removeAll(where: { $0 === client })
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
| `- warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
123 | self.logger.info("[⚡️] 🔴 connection closed \(c.id)")
124 | self._on(close: c)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:126:17: warning: mutation of captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
124 | self._on(close: c)
125 | self.on(close: c)
126 | client = nil
| `- warning: mutation of captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
127 | }
128 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:131:32: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 |
130 | ws.onPing { [weak self] _ in
131 | guard let client = client else { return }
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | self?.logger.debug("[⚡️] 🏓 ping \(client.id)")
133 | self?._on(ping: client)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:132:13: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | ws.onPing { [weak self] _ in
131 | guard let client = client else { return }
132 | self?.logger.debug("[⚡️] 🏓 ping \(client.id)")
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
133 | self?._on(ping: client)
134 | self?.on(ping: client)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:131:32: warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
129 |
130 | ws.onPing { [weak self] _ in
131 | guard let client = client else { return }
| `- warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
132 | self?.logger.debug("[⚡️] 🏓 ping \(client.id)")
133 | self?._on(ping: client)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:138:32: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 |
137 | ws.onPong { [weak self] _ in
138 | guard let client = client else { return }
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 | self?.logger.debug("[⚡️] 🏓 pong \(client.id)")
140 | self?._on(pong: client)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:139:13: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | ws.onPong { [weak self] _ in
138 | guard let client = client else { return }
139 | self?.logger.debug("[⚡️] 🏓 pong \(client.id)")
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | self?._on(pong: client)
141 | self?.on(pong: client)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:138:32: warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
136 |
137 | ws.onPong { [weak self] _ in
138 | guard let client = client else { return }
| `- warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
139 | self?.logger.debug("[⚡️] 🏓 pong \(client.id)")
140 | self?._on(pong: client)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:146:30: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 | ws.onText { [weak self] _, text in
145 | guard
146 | let client = client,
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | let self = self
148 | else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:147:28: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | guard
146 | let client = client,
147 | let self = self
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
148 | else { return }
149 | guard self.exchangeMode != .binary else {
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:146:30: warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
144 | ws.onText { [weak self] _, text in
145 | guard
146 | let client = client,
| `- warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
147 | let self = self
148 | else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:160:30: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
158 | ws.onBinary { [weak self] _, byteBuffer in
159 | guard
160 | let client = client,
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 | let self = self
162 | else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:161:28: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | guard
160 | let client = client,
161 | let self = self
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | else { return }
163 | guard self.exchangeMode != .text else {
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:160:30: warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
158 | ws.onBinary { [weak self] _, byteBuffer in
159 | guard
160 | let client = client,
| `- warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
161 | let self = self
162 | else { return }
[1813/1823] Compiling WS Bindable.swift
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:3:30: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
1 | import Vapor
2 |
3 | public protocol AnyObserver: class, Broadcastable, CustomStringConvertible, Disconnectable, Sendable, Loggable {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
4 | var key: String { get }
5 | var path: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:130:12: warning: 'onPing' is deprecated: Please use `onPing { socket, data in /* … */ }` with the additional `data` parameter.
128 | }
129 |
130 | ws.onPing { [weak self] _ in
| `- warning: 'onPing' is deprecated: Please use `onPing { socket, data in /* … */ }` with the additional `data` parameter.
131 | guard let client = client else { return }
132 | self?.logger.debug("[⚡️] 🏓 ping \(client.id)")
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:137:12: warning: 'onPong' is deprecated: Please use `onPong { socket, data in /* … */ }` with the additional `data` parameter.
135 | }
136 |
137 | ws.onPong { [weak self] _ in
| `- warning: 'onPong' is deprecated: Please use `onPong { socket, data in /* … */ }` with the additional `data` parameter.
138 | guard let client = client else { return }
139 | self?.logger.debug("[⚡️] 🏓 pong \(client.id)")
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:103:30: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
101 |
102 | self.application.ws.knownEventLoop.submit { [weak self] in
103 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 | let c = Client(self, req, ws, logger: self.logger)
105 | client = c
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:105:13: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | guard let self = self else { return }
104 | let c = Client(self, req, ws, logger: self.logger)
105 | client = c
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | self._clients.append(c)
107 | }.whenComplete { [weak self] _ in
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:105:13: warning: mutation of captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
103 | guard let self = self else { return }
104 | let c = Client(self, req, ws, logger: self.logger)
105 | client = c
| `- warning: mutation of captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
106 | self._clients.append(c)
107 | }.whenComplete { [weak self] _ in
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:109:30: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | }.whenComplete { [weak self] _ in
108 | guard
109 | let client = client,
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
110 | let self = self
111 | else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:110:28: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 | guard
109 | let client = client,
110 | let self = self
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | else { return }
112 | self._on(open: client)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:109:30: warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
107 | }.whenComplete { [weak self] _ in
108 | guard
109 | let client = client,
| `- warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
110 | let self = self
111 | else { return }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:118:30: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
116 |
117 | ws.onClose.whenComplete { [weak self] _ in
118 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
119 | self.application.ws.knownEventLoop.submit { [weak self] in
120 | self?._clients.removeAll(where: { $0 === client })
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:120:58: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | guard let self = self else { return }
119 | self.application.ws.knownEventLoop.submit { [weak self] in
120 | self?._clients.removeAll(where: { $0 === client })
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:120:17: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | guard let self = self else { return }
119 | self.application.ws.knownEventLoop.submit { [weak self] in
120 | self?._clients.removeAll(where: { $0 === client })
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:120:58: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | guard let self = self else { return }
119 | self.application.ws.knownEventLoop.submit { [weak self] in
120 | self?._clients.removeAll(where: { $0 === client })
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:120:58: warning: capture of 'client' with non-sendable type 'Client?' in an isolated closure; this is an error in the Swift 6 language mode
118 | guard let self = self else { return }
119 | self.application.ws.knownEventLoop.submit { [weak self] in
120 | self?._clients.removeAll(where: { $0 === client })
| `- warning: capture of 'client' with non-sendable type 'Client?' in an isolated closure; this is an error in the Swift 6 language mode
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:120:58: warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
118 | guard let self = self else { return }
119 | self.application.ws.knownEventLoop.submit { [weak self] in
120 | self?._clients.removeAll(where: { $0 === client })
| `- warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:122:31: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | self?._clients.removeAll(where: { $0 === client })
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | self.logger.info("[⚡️] 🔴 connection closed \(c.id)")
124 | self._on(close: c)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:122:50: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | self?._clients.removeAll(where: { $0 === client })
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | self.logger.info("[⚡️] 🔴 connection closed \(c.id)")
124 | self._on(close: c)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:122:31: warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
120 | self?._clients.removeAll(where: { $0 === client })
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
| `- warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
123 | self.logger.info("[⚡️] 🔴 connection closed \(c.id)")
124 | self._on(close: c)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:126:17: warning: mutation of captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
124 | self._on(close: c)
125 | self.on(close: c)
126 | client = nil
| `- warning: mutation of captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
127 | }
128 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:131:32: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 |
130 | ws.onPing { [weak self] _ in
131 | guard let client = client else { return }
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | self?.logger.debug("[⚡️] 🏓 ping \(client.id)")
133 | self?._on(ping: client)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:132:13: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | ws.onPing { [weak self] _ in
131 | guard let client = client else { return }
132 | self?.logger.debug("[⚡️] 🏓 ping \(client.id)")
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
133 | self?._on(ping: client)
134 | self?.on(ping: client)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:131:32: warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
129 |
130 | ws.onPing { [weak self] _ in
131 | guard let client = client else { return }
| `- warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
132 | self?.logger.debug("[⚡️] 🏓 ping \(client.id)")
133 | self?._on(ping: client)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:138:32: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 |
137 | ws.onPong { [weak self] _ in
138 | guard let client = client else { return }
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 | self?.logger.debug("[⚡️] 🏓 pong \(client.id)")
140 | self?._on(pong: client)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:139:13: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | ws.onPong { [weak self] _ in
138 | guard let client = client else { return }
139 | self?.logger.debug("[⚡️] 🏓 pong \(client.id)")
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | self?._on(pong: client)
141 | self?.on(pong: client)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:138:32: warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
136 |
137 | ws.onPong { [weak self] _ in
138 | guard let client = client else { return }
| `- warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
139 | self?.logger.debug("[⚡️] 🏓 pong \(client.id)")
140 | self?._on(pong: client)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:146:30: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 | ws.onText { [weak self] _, text in
145 | guard
146 | let client = client,
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | let self = self
148 | else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:147:28: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | guard
146 | let client = client,
147 | let self = self
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
148 | else { return }
149 | guard self.exchangeMode != .binary else {
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:146:30: warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
144 | ws.onText { [weak self] _, text in
145 | guard
146 | let client = client,
| `- warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
147 | let self = self
148 | else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:160:30: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
158 | ws.onBinary { [weak self] _, byteBuffer in
159 | guard
160 | let client = client,
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 | let self = self
162 | else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:161:28: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | guard
160 | let client = client,
161 | let self = self
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | else { return }
163 | guard self.exchangeMode != .text else {
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:160:30: warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
158 | ws.onBinary { [weak self] _, byteBuffer in
159 | guard
160 | let client = client,
| `- warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
161 | let self = self
162 | else { return }
[1814/1823] Compiling WS Broadcastable.swift
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:3:30: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
1 | import Vapor
2 |
3 | public protocol AnyObserver: class, Broadcastable, CustomStringConvertible, Disconnectable, Sendable, Loggable {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
4 | var key: String { get }
5 | var path: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:130:12: warning: 'onPing' is deprecated: Please use `onPing { socket, data in /* … */ }` with the additional `data` parameter.
128 | }
129 |
130 | ws.onPing { [weak self] _ in
| `- warning: 'onPing' is deprecated: Please use `onPing { socket, data in /* … */ }` with the additional `data` parameter.
131 | guard let client = client else { return }
132 | self?.logger.debug("[⚡️] 🏓 ping \(client.id)")
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:137:12: warning: 'onPong' is deprecated: Please use `onPong { socket, data in /* … */ }` with the additional `data` parameter.
135 | }
136 |
137 | ws.onPong { [weak self] _ in
| `- warning: 'onPong' is deprecated: Please use `onPong { socket, data in /* … */ }` with the additional `data` parameter.
138 | guard let client = client else { return }
139 | self?.logger.debug("[⚡️] 🏓 pong \(client.id)")
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:103:30: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
101 |
102 | self.application.ws.knownEventLoop.submit { [weak self] in
103 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
104 | let c = Client(self, req, ws, logger: self.logger)
105 | client = c
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:105:13: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | guard let self = self else { return }
104 | let c = Client(self, req, ws, logger: self.logger)
105 | client = c
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 | self._clients.append(c)
107 | }.whenComplete { [weak self] _ in
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:105:13: warning: mutation of captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
103 | guard let self = self else { return }
104 | let c = Client(self, req, ws, logger: self.logger)
105 | client = c
| `- warning: mutation of captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
106 | self._clients.append(c)
107 | }.whenComplete { [weak self] _ in
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:109:30: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
107 | }.whenComplete { [weak self] _ in
108 | guard
109 | let client = client,
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
110 | let self = self
111 | else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:110:28: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
108 | guard
109 | let client = client,
110 | let self = self
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
111 | else { return }
112 | self._on(open: client)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:109:30: warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
107 | }.whenComplete { [weak self] _ in
108 | guard
109 | let client = client,
| `- warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
110 | let self = self
111 | else { return }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:118:30: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
116 |
117 | ws.onClose.whenComplete { [weak self] _ in
118 | guard let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
119 | self.application.ws.knownEventLoop.submit { [weak self] in
120 | self?._clients.removeAll(where: { $0 === client })
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:120:58: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | guard let self = self else { return }
119 | self.application.ws.knownEventLoop.submit { [weak self] in
120 | self?._clients.removeAll(where: { $0 === client })
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:120:17: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | guard let self = self else { return }
119 | self.application.ws.knownEventLoop.submit { [weak self] in
120 | self?._clients.removeAll(where: { $0 === client })
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:120:58: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 | guard let self = self else { return }
119 | self.application.ws.knownEventLoop.submit { [weak self] in
120 | self?._clients.removeAll(where: { $0 === client })
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:120:58: warning: capture of 'client' with non-sendable type 'Client?' in an isolated closure; this is an error in the Swift 6 language mode
118 | guard let self = self else { return }
119 | self.application.ws.knownEventLoop.submit { [weak self] in
120 | self?._clients.removeAll(where: { $0 === client })
| `- warning: capture of 'client' with non-sendable type 'Client?' in an isolated closure; this is an error in the Swift 6 language mode
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:120:58: warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
118 | guard let self = self else { return }
119 | self.application.ws.knownEventLoop.submit { [weak self] in
120 | self?._clients.removeAll(where: { $0 === client })
| `- warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:122:31: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | self?._clients.removeAll(where: { $0 === client })
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | self.logger.info("[⚡️] 🔴 connection closed \(c.id)")
124 | self._on(close: c)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:122:50: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | self?._clients.removeAll(where: { $0 === client })
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | self.logger.info("[⚡️] 🔴 connection closed \(c.id)")
124 | self._on(close: c)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:122:31: warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
120 | self?._clients.removeAll(where: { $0 === client })
121 | }.whenComplete { [weak self] _ in
122 | guard let c = client, let self = self else { return }
| `- warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
123 | self.logger.info("[⚡️] 🔴 connection closed \(c.id)")
124 | self._on(close: c)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:126:17: warning: mutation of captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
124 | self._on(close: c)
125 | self.on(close: c)
126 | client = nil
| `- warning: mutation of captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
127 | }
128 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:131:32: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
129 |
130 | ws.onPing { [weak self] _ in
131 | guard let client = client else { return }
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | self?.logger.debug("[⚡️] 🏓 ping \(client.id)")
133 | self?._on(ping: client)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:132:13: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
130 | ws.onPing { [weak self] _ in
131 | guard let client = client else { return }
132 | self?.logger.debug("[⚡️] 🏓 ping \(client.id)")
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
133 | self?._on(ping: client)
134 | self?.on(ping: client)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:131:32: warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
129 |
130 | ws.onPing { [weak self] _ in
131 | guard let client = client else { return }
| `- warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
132 | self?.logger.debug("[⚡️] 🏓 ping \(client.id)")
133 | self?._on(ping: client)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:138:32: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 |
137 | ws.onPong { [weak self] _ in
138 | guard let client = client else { return }
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 | self?.logger.debug("[⚡️] 🏓 pong \(client.id)")
140 | self?._on(pong: client)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:139:13: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
137 | ws.onPong { [weak self] _ in
138 | guard let client = client else { return }
139 | self?.logger.debug("[⚡️] 🏓 pong \(client.id)")
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | self?._on(pong: client)
141 | self?.on(pong: client)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:138:32: warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
136 |
137 | ws.onPong { [weak self] _ in
138 | guard let client = client else { return }
| `- warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
139 | self?.logger.debug("[⚡️] 🏓 pong \(client.id)")
140 | self?._on(pong: client)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:146:30: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 | ws.onText { [weak self] _, text in
145 | guard
146 | let client = client,
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | let self = self
148 | else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:147:28: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
145 | guard
146 | let client = client,
147 | let self = self
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
148 | else { return }
149 | guard self.exchangeMode != .binary else {
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:146:30: warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
144 | ws.onText { [weak self] _, text in
145 | guard
146 | let client = client,
| `- warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
147 | let self = self
148 | else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:160:30: warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
158 | ws.onBinary { [weak self] _, byteBuffer in
159 | guard
160 | let client = client,
| `- warning: capture of 'client' with non-sendable type 'Client?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 | let self = self
162 | else { return }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Objects/Client.swift:5:7: note: class 'Client' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | class Client: _AnyClient {
| `- note: class 'Client' does not conform to the 'Sendable' protocol
6 | /// See `AnyClient`
7 | public let id: UUID = .init()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:161:28: warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 | guard
160 | let client = client,
161 | let self = self
| `- warning: capture of 'self' with non-sendable type 'Self?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
162 | else { return }
163 | guard self.exchangeMode != .text else {
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyObserver.swift:160:30: warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
158 | ws.onBinary { [weak self] _, byteBuffer in
159 | guard
160 | let client = client,
| `- warning: reference to captured var 'client' in concurrently-executing code; this is an error in the Swift 6 language mode
161 | let self = self
162 | else { return }
[1815/1823] Compiling WS DefaultDateFormatter.swift
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/DefaultDateFormatter.swift:3:7: warning: class 'DefaultDateFormatter' must restate inherited '@unchecked Sendable' conformance
1 | import Foundation
2 |
3 | class DefaultDateFormatter: DateFormatter {
| `- warning: class 'DefaultDateFormatter' must restate inherited '@unchecked Sendable' conformance
4 | func setup() {
5 | self.calendar = Calendar(identifier: .iso8601)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/EndpointBuilder.swift:74:99: warning: converting non-sendable function value to '@Sendable (Request, WebSocket) -> ()' may introduce data races
72 |
73 | application.wsStorage[wsid.key] = observer
74 | WSRoute(root: application.grouped(middlewares), path: path).webSocket(onUpgrade: observer.handle)
| `- warning: converting non-sendable function value to '@Sendable (Request, WebSocket) -> ()' may introduce data races
75 |
76 | let observerType = String(describing: Observer.self)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/Storage.swift:7:12: warning: type '_Storage.Key.Value' (aka '_Storage') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
2 | import Vapor
3 |
4 | class _Storage {
| `- note: class '_Storage' does not conform to the 'Sendable' protocol
5 | var items: [String: AnyObserver] = [:]
6 |
7 | struct Key: StorageKey {
| `- warning: type '_Storage.Key.Value' (aka '_Storage') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | typealias Value = _Storage
9 | }
[1816/1823] Compiling WS EndpointBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/DefaultDateFormatter.swift:3:7: warning: class 'DefaultDateFormatter' must restate inherited '@unchecked Sendable' conformance
1 | import Foundation
2 |
3 | class DefaultDateFormatter: DateFormatter {
| `- warning: class 'DefaultDateFormatter' must restate inherited '@unchecked Sendable' conformance
4 | func setup() {
5 | self.calendar = Calendar(identifier: .iso8601)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/EndpointBuilder.swift:74:99: warning: converting non-sendable function value to '@Sendable (Request, WebSocket) -> ()' may introduce data races
72 |
73 | application.wsStorage[wsid.key] = observer
74 | WSRoute(root: application.grouped(middlewares), path: path).webSocket(onUpgrade: observer.handle)
| `- warning: converting non-sendable function value to '@Sendable (Request, WebSocket) -> ()' may introduce data races
75 |
76 | let observerType = String(describing: Observer.self)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/Storage.swift:7:12: warning: type '_Storage.Key.Value' (aka '_Storage') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
2 | import Vapor
3 |
4 | class _Storage {
| `- note: class '_Storage' does not conform to the 'Sendable' protocol
5 | var items: [String: AnyObserver] = [:]
6 |
7 | struct Key: StorageKey {
| `- warning: type '_Storage.Key.Value' (aka '_Storage') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | typealias Value = _Storage
9 | }
[1817/1823] Compiling WS Storage.swift
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/DefaultDateFormatter.swift:3:7: warning: class 'DefaultDateFormatter' must restate inherited '@unchecked Sendable' conformance
1 | import Foundation
2 |
3 | class DefaultDateFormatter: DateFormatter {
| `- warning: class 'DefaultDateFormatter' must restate inherited '@unchecked Sendable' conformance
4 | func setup() {
5 | self.calendar = Calendar(identifier: .iso8601)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/EndpointBuilder.swift:74:99: warning: converting non-sendable function value to '@Sendable (Request, WebSocket) -> ()' may introduce data races
72 |
73 | application.wsStorage[wsid.key] = observer
74 | WSRoute(root: application.grouped(middlewares), path: path).webSocket(onUpgrade: observer.handle)
| `- warning: converting non-sendable function value to '@Sendable (Request, WebSocket) -> ()' may introduce data races
75 |
76 | let observerType = String(describing: Observer.self)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/Storage.swift:7:12: warning: type '_Storage.Key.Value' (aka '_Storage') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
2 | import Vapor
3 |
4 | class _Storage {
| `- note: class '_Storage' does not conform to the 'Sendable' protocol
5 | var items: [String: AnyObserver] = [:]
6 |
7 | struct Key: StorageKey {
| `- warning: type '_Storage.Key.Value' (aka '_Storage') does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
8 | typealias Value = _Storage
9 | }
[1818/1823] Compiling WS Nothing.swift
[1819/1823] Compiling WS OriginalRequest.swift
[1820/1823] Compiling WS WSID.swift
[1821/1823] Compiling WS Sendable.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:42:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | /// Send as `text`
41 | return eventLoop.future().map {
42 | self.sockets.forEach {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | self.logger.debug("[⚡️] 📤 text: \(text)")
44 | $0.send(text)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:43:58: warning: capture of 'text' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 |
33 | extension _Sendable {
34 | func _send<S>(text: S) -> EventLoopFuture<Void> where S : Collection, S.Element == Character {
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
35 | /// Send as `binary` instead
36 | if exchangeMode == .binary {
:
41 | return eventLoop.future().map {
42 | self.sockets.forEach {
43 | self.logger.debug("[⚡️] 📤 text: \(text)")
| `- warning: capture of 'text' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | $0.send(text)
45 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:43:17: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
41 | return eventLoop.future().map {
42 | self.sockets.forEach {
43 | self.logger.debug("[⚡️] 📤 text: \(text)")
| `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
44 | $0.send(text)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:43:58: warning: capture of 'text' with non-sendable type 'S' in an isolated closure; this is an error in the Swift 6 language mode
32 |
33 | extension _Sendable {
34 | func _send<S>(text: S) -> EventLoopFuture<Void> where S : Collection, S.Element == Character {
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
35 | /// Send as `binary` instead
36 | if exchangeMode == .binary {
:
41 | return eventLoop.future().map {
42 | self.sockets.forEach {
43 | self.logger.debug("[⚡️] 📤 text: \(text)")
| `- warning: capture of 'text' with non-sendable type 'S' in an isolated closure; this is an error in the Swift 6 language mode
44 | $0.send(text)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:43:58: warning: implicit capture of 'text' requires that 'S' conforms to `Sendable`; this is an error in the Swift 6 language mode
32 |
33 | extension _Sendable {
34 | func _send<S>(text: S) -> EventLoopFuture<Void> where S : Collection, S.Element == Character {
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
35 | /// Send as `binary` instead
36 | if exchangeMode == .binary {
:
41 | return eventLoop.future().map {
42 | self.sockets.forEach {
43 | self.logger.debug("[⚡️] 📤 text: \(text)")
| `- warning: implicit capture of 'text' requires that 'S' conforms to `Sendable`; this is an error in the Swift 6 language mode
44 | $0.send(text)
45 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:61:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | /// Send as `binary`
60 | return eventLoop.future().map {
61 | self.sockets.forEach {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | self.logger.debug("[⚡️] 📤 bytes: \(bytes.count)")
63 | $0.send(bytes)
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:62:17: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
60 | return eventLoop.future().map {
61 | self.sockets.forEach {
62 | self.logger.debug("[⚡️] 📤 bytes: \(bytes.count)")
| `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
63 | $0.send(bytes)
64 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:84:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
82 | /// Send as `binary`
83 | return eventLoop.future().map {
84 | self.sockets.forEach {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | self.logger.debug("[⚡️] 📤 data: \(data.count)")
86 | $0.send(raw: data, opcode: opcode)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:85:58: warning: capture of 'data' with non-sendable type 'Data' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | }
71 |
72 | func _send<Data>(data: Data, opcode: WebSocketOpcode) -> EventLoopFuture<Void> where Data: DataProtocol {
| `- note: consider making generic parameter 'Data' conform to the 'Sendable' protocol
73 | /// Send as `text` instead
74 | if exchangeMode == .text {
:
83 | return eventLoop.future().map {
84 | self.sockets.forEach {
85 | self.logger.debug("[⚡️] 📤 data: \(data.count)")
| `- warning: capture of 'data' with non-sendable type 'Data' in a `@Sendable` closure; this is an error in the Swift 6 language mode
86 | $0.send(raw: data, opcode: opcode)
87 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:85:17: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
83 | return eventLoop.future().map {
84 | self.sockets.forEach {
85 | self.logger.debug("[⚡️] 📤 data: \(data.count)")
| `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
86 | $0.send(raw: data, opcode: opcode)
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:85:58: warning: capture of 'data' with non-sendable type 'Data' in an isolated closure; this is an error in the Swift 6 language mode
70 | }
71 |
72 | func _send<Data>(data: Data, opcode: WebSocketOpcode) -> EventLoopFuture<Void> where Data: DataProtocol {
| `- note: consider making generic parameter 'Data' conform to the 'Sendable' protocol
73 | /// Send as `text` instead
74 | if exchangeMode == .text {
:
83 | return eventLoop.future().map {
84 | self.sockets.forEach {
85 | self.logger.debug("[⚡️] 📤 data: \(data.count)")
| `- warning: capture of 'data' with non-sendable type 'Data' in an isolated closure; this is an error in the Swift 6 language mode
86 | $0.send(raw: data, opcode: opcode)
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:85:58: warning: implicit capture of 'data' requires that 'Data' conforms to `Sendable`; this is an error in the Swift 6 language mode
70 | }
71 |
72 | func _send<Data>(data: Data, opcode: WebSocketOpcode) -> EventLoopFuture<Void> where Data: DataProtocol {
| `- note: consider making generic parameter 'Data' conform to the 'Sendable' protocol
73 | /// Send as `text` instead
74 | if exchangeMode == .text {
:
83 | return eventLoop.future().map {
84 | self.sockets.forEach {
85 | self.logger.debug("[⚡️] 📤 data: \(data.count)")
| `- warning: implicit capture of 'data' requires that 'Data' conforms to `Sendable`; this is an error in the Swift 6 language mode
86 | $0.send(raw: data, opcode: opcode)
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:97:17: warning: capture of 'encoder' with non-sendable type 'any Encoder' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | func _send<C>(model: C, encoder: Encoder) -> EventLoopFuture<Void> where C: Encodable {
96 | eventLoop.future().flatMapThrowing {
97 | try encoder.encode(model)
| `- warning: capture of 'encoder' with non-sendable type 'any Encoder' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | }.flatMap { data -> EventLoopFuture<Data> in
99 | if self.exchangeMode == .text {
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Encoder.swift:3:17: note: protocol 'Encoder' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol Encoder {
| `- note: protocol 'Encoder' does not conform to the 'Sendable' protocol
4 | func encode<T>(_ value: T) throws -> Data where T : Encodable
5 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:97:32: warning: capture of 'model' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
93 | }
94 |
95 | func _send<C>(model: C, encoder: Encoder) -> EventLoopFuture<Void> where C: Encodable {
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
96 | eventLoop.future().flatMapThrowing {
97 | try encoder.encode(model)
| `- warning: capture of 'model' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | }.flatMap { data -> EventLoopFuture<Data> in
99 | if self.exchangeMode == .text {
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:99:16: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
97 | try encoder.encode(model)
98 | }.flatMap { data -> EventLoopFuture<Data> in
99 | if self.exchangeMode == .text {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 | return self.eventLoop.future(data)
101 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:104:19: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
102 | return self.send(data: data).transform(to: data)
103 | }.flatMap {
104 | guard self.exchangeMode != .binary,
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | let text = String(data: $0, encoding: .utf8) else {
106 | return self.eventLoop.future()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:122:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | func _sendPing() -> EventLoopFuture<Void> {
121 | eventLoop.future().map {
122 | self.sockets.forEach { $0.sendPing() }
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | }
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:131:33: warning: capture of 'text' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 |
129 | extension EventLoopFuture: Sendable where Value: Sendable {
130 | public func send<S>(text: S) -> EventLoopFuture<Void> where S : Collection, S.Element == Character {
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
131 | flatMap { $0.send(text: text) }
| `- warning: capture of 'text' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:139:33: warning: capture of 'data' with non-sendable type 'Data' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 | }
137 |
138 | public func send<Data>(data: Data) -> EventLoopFuture<Void> where Data : DataProtocol {
| `- note: consider making generic parameter 'Data' conform to the 'Sendable' protocol
139 | flatMap { $0.send(data: data) }
| `- warning: capture of 'data' with non-sendable type 'Data' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | }
141 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:143:33: warning: capture of 'data' with non-sendable type 'Data' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | }
141 |
142 | public func send<Data>(data: Data, opcode: WebSocketOpcode) -> EventLoopFuture<Void> where Data : DataProtocol {
| `- note: consider making generic parameter 'Data' conform to the 'Sendable' protocol
143 | flatMap { $0.send(data: data, opcode: opcode) }
| `- warning: capture of 'data' with non-sendable type 'Data' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 | }
145 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:147:34: warning: capture of 'model' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 | }
145 |
146 | public func send<C>(model: C) -> EventLoopFuture<Void> where C : Encodable {
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
147 | flatMap { $0.send(model: model) }
| `- warning: capture of 'model' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
148 | }
149 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:151:34: warning: capture of 'model' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
148 | }
149 |
150 | public func send<C>(model: C, encoder: Encoder) -> EventLoopFuture<Void> where C : Encodable {
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
151 | flatMap { $0.send(model: model, encoder: encoder) }
| `- warning: capture of 'model' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | }
153 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:151:50: warning: capture of 'encoder' with non-sendable type 'any Encoder' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 |
150 | public func send<C>(model: C, encoder: Encoder) -> EventLoopFuture<Void> where C : Encodable {
151 | flatMap { $0.send(model: model, encoder: encoder) }
| `- warning: capture of 'encoder' with non-sendable type 'any Encoder' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | }
153 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Encoder.swift:3:17: note: protocol 'Encoder' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol Encoder {
| `- note: protocol 'Encoder' does not conform to the 'Sendable' protocol
4 | func encode<T>(_ value: T) throws -> Data where T : Encodable
5 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:155:34: warning: capture of 'event' with non-sendable type 'EID<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 |
154 | public func send<T>(event: EID<T>) -> EventLoopFuture<Void> where T : Decodable, T : Encodable {
155 | flatMap { $0.send(event: event) }
| `- warning: capture of 'event' with non-sendable type 'EID<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | }
157 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/EID.swift:11:15: note: consider making generic struct 'EID' conform to the 'Sendable' protocol
9 | /// }
10 | /// ```
11 | public struct EID<P: Codable>: Equatable, Hashable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making generic struct 'EID' conform to the 'Sendable' protocol
12 | /// The unique id.
13 | public let id: String
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:159:34: warning: capture of 'event' with non-sendable type 'EID<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 |
158 | public func send<T>(event: EID<T>, payload: T?) -> EventLoopFuture<Void> where T : Decodable, T : Encodable {
159 | flatMap { $0.send(event: event, payload: payload) }
| `- warning: capture of 'event' with non-sendable type 'EID<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
160 | }
161 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/EID.swift:11:15: note: consider making generic struct 'EID' conform to the 'Sendable' protocol
9 | /// }
10 | /// ```
11 | public struct EID<P: Codable>: Equatable, Hashable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making generic struct 'EID' conform to the 'Sendable' protocol
12 | /// The unique id.
13 | public let id: String
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:159:50: warning: capture of 'payload' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | }
157 |
158 | public func send<T>(event: EID<T>, payload: T?) -> EventLoopFuture<Void> where T : Decodable, T : Encodable {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
159 | flatMap { $0.send(event: event, payload: payload) }
| `- warning: capture of 'payload' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
160 | }
161 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:25:34: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
23 | }
24 |
25 | internal protocol _Subscribable: class, Subscribable {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
26 | var eventLoop: EventLoop { get }
27 | var clients: [_AnyClient] { get }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:38:17: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | self.eventLoop.submit {
37 | channels.forEach { channel in
38 | self.clients.forEach {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 | $0.channels.insert(channel)
40 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:38:17: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
36 | self.eventLoop.submit {
37 | channels.forEach { channel in
38 | self.clients.forEach {
| `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
39 | $0.channels.insert(channel)
40 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:52:17: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | self.eventLoop.submit {
51 | channels.forEach { channel in
52 | self.clients.forEach {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | $0.channels.remove(channel)
54 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:52:17: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
50 | self.eventLoop.submit {
51 | channels.forEach { channel in
52 | self.clients.forEach {
| `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
53 | $0.channels.remove(channel)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:68:50: warning: capture of 'self' with non-sendable type 'EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
66 |
67 | public func subscribe(to channels: [String]) -> EventLoopFuture<Void> {
68 | flatMap { $0.subscribe(to: channels, on: self.eventLoop) }
| `- warning: capture of 'self' with non-sendable type 'EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:76:54: warning: capture of 'self' with non-sendable type 'EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 |
75 | public func unsubscribe(from channels: [String]) -> EventLoopFuture<Void> {
76 | flatMap { $0.unsubscribe(from: channels, on: self.eventLoop) }
| `- warning: capture of 'self' with non-sendable type 'EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | }
78 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/Broadcaster.swift:92:32: warning: capture of 'client' with non-sendable type 'any AnyClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | filter(client).map { leave in
91 | if !leave {
92 | ids.insert(client.id)
| `- warning: capture of 'client' with non-sendable type 'any AnyClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyClient.swift:5:17: note: protocol 'AnyClient' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | public protocol AnyClient: Broadcastable, Disconnectable, Subscribable, Sendable {
| `- note: protocol 'AnyClient' does not conform to the 'Sendable' protocol
6 | var id: UUID { get }
7 | var application: Application { get }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/Broadcaster.swift:92:21: warning: mutation of captured var 'ids' in concurrently-executing code; this is an error in the Swift 6 language mode
90 | filter(client).map { leave in
91 | if !leave {
92 | ids.insert(client.id)
| `- warning: mutation of captured var 'ids' in concurrently-executing code; this is an error in the Swift 6 language mode
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/Broadcaster.swift:96:13: warning: capture of 'self' with non-sendable type 'Broadcaster' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | import NIOWebSocket
5 |
6 | public class Broadcaster: Disconnectable, _Disconnectable, Sendable, _Sendable, Subscribable {
| `- note: class 'Broadcaster' does not conform to the 'Sendable' protocol
7 | let eventLoop: EventLoop
8 | var clients: [AnyClient]
:
94 | }
95 | }.flatten(on: eventLoop).map {
96 | self.clients.removeAll { ids.contains($0.id) }
| `- warning: capture of 'self' with non-sendable type 'Broadcaster' in a `@Sendable` closure; this is an error in the Swift 6 language mode
97 | }.transform(to: self)
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/Broadcaster.swift:96:38: warning: reference to captured var 'ids' in concurrently-executing code; this is an error in the Swift 6 language mode
94 | }
95 | }.flatten(on: eventLoop).map {
96 | self.clients.removeAll { ids.contains($0.id) }
| `- warning: reference to captured var 'ids' in concurrently-executing code; this is an error in the Swift 6 language mode
97 | }.transform(to: self)
98 | }
[1822/1823] Compiling WS Subscribable.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:42:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | /// Send as `text`
41 | return eventLoop.future().map {
42 | self.sockets.forEach {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | self.logger.debug("[⚡️] 📤 text: \(text)")
44 | $0.send(text)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:43:58: warning: capture of 'text' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 |
33 | extension _Sendable {
34 | func _send<S>(text: S) -> EventLoopFuture<Void> where S : Collection, S.Element == Character {
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
35 | /// Send as `binary` instead
36 | if exchangeMode == .binary {
:
41 | return eventLoop.future().map {
42 | self.sockets.forEach {
43 | self.logger.debug("[⚡️] 📤 text: \(text)")
| `- warning: capture of 'text' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | $0.send(text)
45 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:43:17: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
41 | return eventLoop.future().map {
42 | self.sockets.forEach {
43 | self.logger.debug("[⚡️] 📤 text: \(text)")
| `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
44 | $0.send(text)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:43:58: warning: capture of 'text' with non-sendable type 'S' in an isolated closure; this is an error in the Swift 6 language mode
32 |
33 | extension _Sendable {
34 | func _send<S>(text: S) -> EventLoopFuture<Void> where S : Collection, S.Element == Character {
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
35 | /// Send as `binary` instead
36 | if exchangeMode == .binary {
:
41 | return eventLoop.future().map {
42 | self.sockets.forEach {
43 | self.logger.debug("[⚡️] 📤 text: \(text)")
| `- warning: capture of 'text' with non-sendable type 'S' in an isolated closure; this is an error in the Swift 6 language mode
44 | $0.send(text)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:43:58: warning: implicit capture of 'text' requires that 'S' conforms to `Sendable`; this is an error in the Swift 6 language mode
32 |
33 | extension _Sendable {
34 | func _send<S>(text: S) -> EventLoopFuture<Void> where S : Collection, S.Element == Character {
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
35 | /// Send as `binary` instead
36 | if exchangeMode == .binary {
:
41 | return eventLoop.future().map {
42 | self.sockets.forEach {
43 | self.logger.debug("[⚡️] 📤 text: \(text)")
| `- warning: implicit capture of 'text' requires that 'S' conforms to `Sendable`; this is an error in the Swift 6 language mode
44 | $0.send(text)
45 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:61:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | /// Send as `binary`
60 | return eventLoop.future().map {
61 | self.sockets.forEach {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | self.logger.debug("[⚡️] 📤 bytes: \(bytes.count)")
63 | $0.send(bytes)
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:62:17: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
60 | return eventLoop.future().map {
61 | self.sockets.forEach {
62 | self.logger.debug("[⚡️] 📤 bytes: \(bytes.count)")
| `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
63 | $0.send(bytes)
64 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:84:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
82 | /// Send as `binary`
83 | return eventLoop.future().map {
84 | self.sockets.forEach {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | self.logger.debug("[⚡️] 📤 data: \(data.count)")
86 | $0.send(raw: data, opcode: opcode)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:85:58: warning: capture of 'data' with non-sendable type 'Data' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | }
71 |
72 | func _send<Data>(data: Data, opcode: WebSocketOpcode) -> EventLoopFuture<Void> where Data: DataProtocol {
| `- note: consider making generic parameter 'Data' conform to the 'Sendable' protocol
73 | /// Send as `text` instead
74 | if exchangeMode == .text {
:
83 | return eventLoop.future().map {
84 | self.sockets.forEach {
85 | self.logger.debug("[⚡️] 📤 data: \(data.count)")
| `- warning: capture of 'data' with non-sendable type 'Data' in a `@Sendable` closure; this is an error in the Swift 6 language mode
86 | $0.send(raw: data, opcode: opcode)
87 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:85:17: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
83 | return eventLoop.future().map {
84 | self.sockets.forEach {
85 | self.logger.debug("[⚡️] 📤 data: \(data.count)")
| `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
86 | $0.send(raw: data, opcode: opcode)
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:85:58: warning: capture of 'data' with non-sendable type 'Data' in an isolated closure; this is an error in the Swift 6 language mode
70 | }
71 |
72 | func _send<Data>(data: Data, opcode: WebSocketOpcode) -> EventLoopFuture<Void> where Data: DataProtocol {
| `- note: consider making generic parameter 'Data' conform to the 'Sendable' protocol
73 | /// Send as `text` instead
74 | if exchangeMode == .text {
:
83 | return eventLoop.future().map {
84 | self.sockets.forEach {
85 | self.logger.debug("[⚡️] 📤 data: \(data.count)")
| `- warning: capture of 'data' with non-sendable type 'Data' in an isolated closure; this is an error in the Swift 6 language mode
86 | $0.send(raw: data, opcode: opcode)
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:85:58: warning: implicit capture of 'data' requires that 'Data' conforms to `Sendable`; this is an error in the Swift 6 language mode
70 | }
71 |
72 | func _send<Data>(data: Data, opcode: WebSocketOpcode) -> EventLoopFuture<Void> where Data: DataProtocol {
| `- note: consider making generic parameter 'Data' conform to the 'Sendable' protocol
73 | /// Send as `text` instead
74 | if exchangeMode == .text {
:
83 | return eventLoop.future().map {
84 | self.sockets.forEach {
85 | self.logger.debug("[⚡️] 📤 data: \(data.count)")
| `- warning: implicit capture of 'data' requires that 'Data' conforms to `Sendable`; this is an error in the Swift 6 language mode
86 | $0.send(raw: data, opcode: opcode)
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:97:17: warning: capture of 'encoder' with non-sendable type 'any Encoder' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | func _send<C>(model: C, encoder: Encoder) -> EventLoopFuture<Void> where C: Encodable {
96 | eventLoop.future().flatMapThrowing {
97 | try encoder.encode(model)
| `- warning: capture of 'encoder' with non-sendable type 'any Encoder' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | }.flatMap { data -> EventLoopFuture<Data> in
99 | if self.exchangeMode == .text {
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Encoder.swift:3:17: note: protocol 'Encoder' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol Encoder {
| `- note: protocol 'Encoder' does not conform to the 'Sendable' protocol
4 | func encode<T>(_ value: T) throws -> Data where T : Encodable
5 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:97:32: warning: capture of 'model' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
93 | }
94 |
95 | func _send<C>(model: C, encoder: Encoder) -> EventLoopFuture<Void> where C: Encodable {
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
96 | eventLoop.future().flatMapThrowing {
97 | try encoder.encode(model)
| `- warning: capture of 'model' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | }.flatMap { data -> EventLoopFuture<Data> in
99 | if self.exchangeMode == .text {
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:99:16: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
97 | try encoder.encode(model)
98 | }.flatMap { data -> EventLoopFuture<Data> in
99 | if self.exchangeMode == .text {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 | return self.eventLoop.future(data)
101 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:104:19: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
102 | return self.send(data: data).transform(to: data)
103 | }.flatMap {
104 | guard self.exchangeMode != .binary,
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | let text = String(data: $0, encoding: .utf8) else {
106 | return self.eventLoop.future()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:122:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | func _sendPing() -> EventLoopFuture<Void> {
121 | eventLoop.future().map {
122 | self.sockets.forEach { $0.sendPing() }
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | }
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:131:33: warning: capture of 'text' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 |
129 | extension EventLoopFuture: Sendable where Value: Sendable {
130 | public func send<S>(text: S) -> EventLoopFuture<Void> where S : Collection, S.Element == Character {
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
131 | flatMap { $0.send(text: text) }
| `- warning: capture of 'text' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:139:33: warning: capture of 'data' with non-sendable type 'Data' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 | }
137 |
138 | public func send<Data>(data: Data) -> EventLoopFuture<Void> where Data : DataProtocol {
| `- note: consider making generic parameter 'Data' conform to the 'Sendable' protocol
139 | flatMap { $0.send(data: data) }
| `- warning: capture of 'data' with non-sendable type 'Data' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | }
141 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:143:33: warning: capture of 'data' with non-sendable type 'Data' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | }
141 |
142 | public func send<Data>(data: Data, opcode: WebSocketOpcode) -> EventLoopFuture<Void> where Data : DataProtocol {
| `- note: consider making generic parameter 'Data' conform to the 'Sendable' protocol
143 | flatMap { $0.send(data: data, opcode: opcode) }
| `- warning: capture of 'data' with non-sendable type 'Data' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 | }
145 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:147:34: warning: capture of 'model' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 | }
145 |
146 | public func send<C>(model: C) -> EventLoopFuture<Void> where C : Encodable {
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
147 | flatMap { $0.send(model: model) }
| `- warning: capture of 'model' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
148 | }
149 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:151:34: warning: capture of 'model' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
148 | }
149 |
150 | public func send<C>(model: C, encoder: Encoder) -> EventLoopFuture<Void> where C : Encodable {
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
151 | flatMap { $0.send(model: model, encoder: encoder) }
| `- warning: capture of 'model' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | }
153 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:151:50: warning: capture of 'encoder' with non-sendable type 'any Encoder' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 |
150 | public func send<C>(model: C, encoder: Encoder) -> EventLoopFuture<Void> where C : Encodable {
151 | flatMap { $0.send(model: model, encoder: encoder) }
| `- warning: capture of 'encoder' with non-sendable type 'any Encoder' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | }
153 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Encoder.swift:3:17: note: protocol 'Encoder' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol Encoder {
| `- note: protocol 'Encoder' does not conform to the 'Sendable' protocol
4 | func encode<T>(_ value: T) throws -> Data where T : Encodable
5 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:155:34: warning: capture of 'event' with non-sendable type 'EID<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 |
154 | public func send<T>(event: EID<T>) -> EventLoopFuture<Void> where T : Decodable, T : Encodable {
155 | flatMap { $0.send(event: event) }
| `- warning: capture of 'event' with non-sendable type 'EID<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | }
157 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/EID.swift:11:15: note: consider making generic struct 'EID' conform to the 'Sendable' protocol
9 | /// }
10 | /// ```
11 | public struct EID<P: Codable>: Equatable, Hashable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making generic struct 'EID' conform to the 'Sendable' protocol
12 | /// The unique id.
13 | public let id: String
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:159:34: warning: capture of 'event' with non-sendable type 'EID<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 |
158 | public func send<T>(event: EID<T>, payload: T?) -> EventLoopFuture<Void> where T : Decodable, T : Encodable {
159 | flatMap { $0.send(event: event, payload: payload) }
| `- warning: capture of 'event' with non-sendable type 'EID<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
160 | }
161 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/EID.swift:11:15: note: consider making generic struct 'EID' conform to the 'Sendable' protocol
9 | /// }
10 | /// ```
11 | public struct EID<P: Codable>: Equatable, Hashable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making generic struct 'EID' conform to the 'Sendable' protocol
12 | /// The unique id.
13 | public let id: String
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:159:50: warning: capture of 'payload' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | }
157 |
158 | public func send<T>(event: EID<T>, payload: T?) -> EventLoopFuture<Void> where T : Decodable, T : Encodable {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
159 | flatMap { $0.send(event: event, payload: payload) }
| `- warning: capture of 'payload' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
160 | }
161 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:25:34: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
23 | }
24 |
25 | internal protocol _Subscribable: class, Subscribable {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
26 | var eventLoop: EventLoop { get }
27 | var clients: [_AnyClient] { get }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:38:17: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | self.eventLoop.submit {
37 | channels.forEach { channel in
38 | self.clients.forEach {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 | $0.channels.insert(channel)
40 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:38:17: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
36 | self.eventLoop.submit {
37 | channels.forEach { channel in
38 | self.clients.forEach {
| `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
39 | $0.channels.insert(channel)
40 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:52:17: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | self.eventLoop.submit {
51 | channels.forEach { channel in
52 | self.clients.forEach {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | $0.channels.remove(channel)
54 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:52:17: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
50 | self.eventLoop.submit {
51 | channels.forEach { channel in
52 | self.clients.forEach {
| `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
53 | $0.channels.remove(channel)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:68:50: warning: capture of 'self' with non-sendable type 'EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
66 |
67 | public func subscribe(to channels: [String]) -> EventLoopFuture<Void> {
68 | flatMap { $0.subscribe(to: channels, on: self.eventLoop) }
| `- warning: capture of 'self' with non-sendable type 'EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:76:54: warning: capture of 'self' with non-sendable type 'EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 |
75 | public func unsubscribe(from channels: [String]) -> EventLoopFuture<Void> {
76 | flatMap { $0.unsubscribe(from: channels, on: self.eventLoop) }
| `- warning: capture of 'self' with non-sendable type 'EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | }
78 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/Broadcaster.swift:92:32: warning: capture of 'client' with non-sendable type 'any AnyClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | filter(client).map { leave in
91 | if !leave {
92 | ids.insert(client.id)
| `- warning: capture of 'client' with non-sendable type 'any AnyClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyClient.swift:5:17: note: protocol 'AnyClient' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | public protocol AnyClient: Broadcastable, Disconnectable, Subscribable, Sendable {
| `- note: protocol 'AnyClient' does not conform to the 'Sendable' protocol
6 | var id: UUID { get }
7 | var application: Application { get }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/Broadcaster.swift:92:21: warning: mutation of captured var 'ids' in concurrently-executing code; this is an error in the Swift 6 language mode
90 | filter(client).map { leave in
91 | if !leave {
92 | ids.insert(client.id)
| `- warning: mutation of captured var 'ids' in concurrently-executing code; this is an error in the Swift 6 language mode
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/Broadcaster.swift:96:13: warning: capture of 'self' with non-sendable type 'Broadcaster' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | import NIOWebSocket
5 |
6 | public class Broadcaster: Disconnectable, _Disconnectable, Sendable, _Sendable, Subscribable {
| `- note: class 'Broadcaster' does not conform to the 'Sendable' protocol
7 | let eventLoop: EventLoop
8 | var clients: [AnyClient]
:
94 | }
95 | }.flatten(on: eventLoop).map {
96 | self.clients.removeAll { ids.contains($0.id) }
| `- warning: capture of 'self' with non-sendable type 'Broadcaster' in a `@Sendable` closure; this is an error in the Swift 6 language mode
97 | }.transform(to: self)
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/Broadcaster.swift:96:38: warning: reference to captured var 'ids' in concurrently-executing code; this is an error in the Swift 6 language mode
94 | }
95 | }.flatten(on: eventLoop).map {
96 | self.clients.removeAll { ids.contains($0.id) }
| `- warning: reference to captured var 'ids' in concurrently-executing code; this is an error in the Swift 6 language mode
97 | }.transform(to: self)
98 | }
[1823/1823] Compiling WS Broadcaster.swift
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:42:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | /// Send as `text`
41 | return eventLoop.future().map {
42 | self.sockets.forEach {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | self.logger.debug("[⚡️] 📤 text: \(text)")
44 | $0.send(text)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:43:58: warning: capture of 'text' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
32 |
33 | extension _Sendable {
34 | func _send<S>(text: S) -> EventLoopFuture<Void> where S : Collection, S.Element == Character {
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
35 | /// Send as `binary` instead
36 | if exchangeMode == .binary {
:
41 | return eventLoop.future().map {
42 | self.sockets.forEach {
43 | self.logger.debug("[⚡️] 📤 text: \(text)")
| `- warning: capture of 'text' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
44 | $0.send(text)
45 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:43:17: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
41 | return eventLoop.future().map {
42 | self.sockets.forEach {
43 | self.logger.debug("[⚡️] 📤 text: \(text)")
| `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
44 | $0.send(text)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:43:58: warning: capture of 'text' with non-sendable type 'S' in an isolated closure; this is an error in the Swift 6 language mode
32 |
33 | extension _Sendable {
34 | func _send<S>(text: S) -> EventLoopFuture<Void> where S : Collection, S.Element == Character {
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
35 | /// Send as `binary` instead
36 | if exchangeMode == .binary {
:
41 | return eventLoop.future().map {
42 | self.sockets.forEach {
43 | self.logger.debug("[⚡️] 📤 text: \(text)")
| `- warning: capture of 'text' with non-sendable type 'S' in an isolated closure; this is an error in the Swift 6 language mode
44 | $0.send(text)
45 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:43:58: warning: implicit capture of 'text' requires that 'S' conforms to `Sendable`; this is an error in the Swift 6 language mode
32 |
33 | extension _Sendable {
34 | func _send<S>(text: S) -> EventLoopFuture<Void> where S : Collection, S.Element == Character {
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
35 | /// Send as `binary` instead
36 | if exchangeMode == .binary {
:
41 | return eventLoop.future().map {
42 | self.sockets.forEach {
43 | self.logger.debug("[⚡️] 📤 text: \(text)")
| `- warning: implicit capture of 'text' requires that 'S' conforms to `Sendable`; this is an error in the Swift 6 language mode
44 | $0.send(text)
45 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:61:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
59 | /// Send as `binary`
60 | return eventLoop.future().map {
61 | self.sockets.forEach {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
62 | self.logger.debug("[⚡️] 📤 bytes: \(bytes.count)")
63 | $0.send(bytes)
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:62:17: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
60 | return eventLoop.future().map {
61 | self.sockets.forEach {
62 | self.logger.debug("[⚡️] 📤 bytes: \(bytes.count)")
| `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
63 | $0.send(bytes)
64 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:84:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
82 | /// Send as `binary`
83 | return eventLoop.future().map {
84 | self.sockets.forEach {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | self.logger.debug("[⚡️] 📤 data: \(data.count)")
86 | $0.send(raw: data, opcode: opcode)
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:85:58: warning: capture of 'data' with non-sendable type 'Data' in a `@Sendable` closure; this is an error in the Swift 6 language mode
70 | }
71 |
72 | func _send<Data>(data: Data, opcode: WebSocketOpcode) -> EventLoopFuture<Void> where Data: DataProtocol {
| `- note: consider making generic parameter 'Data' conform to the 'Sendable' protocol
73 | /// Send as `text` instead
74 | if exchangeMode == .text {
:
83 | return eventLoop.future().map {
84 | self.sockets.forEach {
85 | self.logger.debug("[⚡️] 📤 data: \(data.count)")
| `- warning: capture of 'data' with non-sendable type 'Data' in a `@Sendable` closure; this is an error in the Swift 6 language mode
86 | $0.send(raw: data, opcode: opcode)
87 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:85:17: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
83 | return eventLoop.future().map {
84 | self.sockets.forEach {
85 | self.logger.debug("[⚡️] 📤 data: \(data.count)")
| `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
86 | $0.send(raw: data, opcode: opcode)
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:85:58: warning: capture of 'data' with non-sendable type 'Data' in an isolated closure; this is an error in the Swift 6 language mode
70 | }
71 |
72 | func _send<Data>(data: Data, opcode: WebSocketOpcode) -> EventLoopFuture<Void> where Data: DataProtocol {
| `- note: consider making generic parameter 'Data' conform to the 'Sendable' protocol
73 | /// Send as `text` instead
74 | if exchangeMode == .text {
:
83 | return eventLoop.future().map {
84 | self.sockets.forEach {
85 | self.logger.debug("[⚡️] 📤 data: \(data.count)")
| `- warning: capture of 'data' with non-sendable type 'Data' in an isolated closure; this is an error in the Swift 6 language mode
86 | $0.send(raw: data, opcode: opcode)
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:85:58: warning: implicit capture of 'data' requires that 'Data' conforms to `Sendable`; this is an error in the Swift 6 language mode
70 | }
71 |
72 | func _send<Data>(data: Data, opcode: WebSocketOpcode) -> EventLoopFuture<Void> where Data: DataProtocol {
| `- note: consider making generic parameter 'Data' conform to the 'Sendable' protocol
73 | /// Send as `text` instead
74 | if exchangeMode == .text {
:
83 | return eventLoop.future().map {
84 | self.sockets.forEach {
85 | self.logger.debug("[⚡️] 📤 data: \(data.count)")
| `- warning: implicit capture of 'data' requires that 'Data' conforms to `Sendable`; this is an error in the Swift 6 language mode
86 | $0.send(raw: data, opcode: opcode)
87 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:97:17: warning: capture of 'encoder' with non-sendable type 'any Encoder' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | func _send<C>(model: C, encoder: Encoder) -> EventLoopFuture<Void> where C: Encodable {
96 | eventLoop.future().flatMapThrowing {
97 | try encoder.encode(model)
| `- warning: capture of 'encoder' with non-sendable type 'any Encoder' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | }.flatMap { data -> EventLoopFuture<Data> in
99 | if self.exchangeMode == .text {
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Encoder.swift:3:17: note: protocol 'Encoder' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol Encoder {
| `- note: protocol 'Encoder' does not conform to the 'Sendable' protocol
4 | func encode<T>(_ value: T) throws -> Data where T : Encodable
5 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:97:32: warning: capture of 'model' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
93 | }
94 |
95 | func _send<C>(model: C, encoder: Encoder) -> EventLoopFuture<Void> where C: Encodable {
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
96 | eventLoop.future().flatMapThrowing {
97 | try encoder.encode(model)
| `- warning: capture of 'model' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | }.flatMap { data -> EventLoopFuture<Data> in
99 | if self.exchangeMode == .text {
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:99:16: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
97 | try encoder.encode(model)
98 | }.flatMap { data -> EventLoopFuture<Data> in
99 | if self.exchangeMode == .text {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
100 | return self.eventLoop.future(data)
101 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:104:19: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
102 | return self.send(data: data).transform(to: data)
103 | }.flatMap {
104 | guard self.exchangeMode != .binary,
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
105 | let text = String(data: $0, encoding: .utf8) else {
106 | return self.eventLoop.future()
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:122:13: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 | func _sendPing() -> EventLoopFuture<Void> {
121 | eventLoop.future().map {
122 | self.sockets.forEach { $0.sendPing() }
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | }
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:131:33: warning: capture of 'text' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
128 |
129 | extension EventLoopFuture: Sendable where Value: Sendable {
130 | public func send<S>(text: S) -> EventLoopFuture<Void> where S : Collection, S.Element == Character {
| `- note: consider making generic parameter 'S' conform to the 'Sendable' protocol
131 | flatMap { $0.send(text: text) }
| `- warning: capture of 'text' with non-sendable type 'S' in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | }
133 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:139:33: warning: capture of 'data' with non-sendable type 'Data' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 | }
137 |
138 | public func send<Data>(data: Data) -> EventLoopFuture<Void> where Data : DataProtocol {
| `- note: consider making generic parameter 'Data' conform to the 'Sendable' protocol
139 | flatMap { $0.send(data: data) }
| `- warning: capture of 'data' with non-sendable type 'Data' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | }
141 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:143:33: warning: capture of 'data' with non-sendable type 'Data' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | }
141 |
142 | public func send<Data>(data: Data, opcode: WebSocketOpcode) -> EventLoopFuture<Void> where Data : DataProtocol {
| `- note: consider making generic parameter 'Data' conform to the 'Sendable' protocol
143 | flatMap { $0.send(data: data, opcode: opcode) }
| `- warning: capture of 'data' with non-sendable type 'Data' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 | }
145 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:147:34: warning: capture of 'model' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 | }
145 |
146 | public func send<C>(model: C) -> EventLoopFuture<Void> where C : Encodable {
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
147 | flatMap { $0.send(model: model) }
| `- warning: capture of 'model' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
148 | }
149 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:151:34: warning: capture of 'model' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
148 | }
149 |
150 | public func send<C>(model: C, encoder: Encoder) -> EventLoopFuture<Void> where C : Encodable {
| `- note: consider making generic parameter 'C' conform to the 'Sendable' protocol
151 | flatMap { $0.send(model: model, encoder: encoder) }
| `- warning: capture of 'model' with non-sendable type 'C' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | }
153 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:151:50: warning: capture of 'encoder' with non-sendable type 'any Encoder' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 |
150 | public func send<C>(model: C, encoder: Encoder) -> EventLoopFuture<Void> where C : Encodable {
151 | flatMap { $0.send(model: model, encoder: encoder) }
| `- warning: capture of 'encoder' with non-sendable type 'any Encoder' in a `@Sendable` closure; this is an error in the Swift 6 language mode
152 | }
153 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Encoder.swift:3:17: note: protocol 'Encoder' does not conform to the 'Sendable' protocol
1 | import Foundation
2 |
3 | public protocol Encoder {
| `- note: protocol 'Encoder' does not conform to the 'Sendable' protocol
4 | func encode<T>(_ value: T) throws -> Data where T : Encodable
5 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:155:34: warning: capture of 'event' with non-sendable type 'EID<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
153 |
154 | public func send<T>(event: EID<T>) -> EventLoopFuture<Void> where T : Decodable, T : Encodable {
155 | flatMap { $0.send(event: event) }
| `- warning: capture of 'event' with non-sendable type 'EID<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | }
157 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/EID.swift:11:15: note: consider making generic struct 'EID' conform to the 'Sendable' protocol
9 | /// }
10 | /// ```
11 | public struct EID<P: Codable>: Equatable, Hashable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making generic struct 'EID' conform to the 'Sendable' protocol
12 | /// The unique id.
13 | public let id: String
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:159:34: warning: capture of 'event' with non-sendable type 'EID<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 |
158 | public func send<T>(event: EID<T>, payload: T?) -> EventLoopFuture<Void> where T : Decodable, T : Encodable {
159 | flatMap { $0.send(event: event, payload: payload) }
| `- warning: capture of 'event' with non-sendable type 'EID<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
160 | }
161 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Models/EID.swift:11:15: note: consider making generic struct 'EID' conform to the 'Sendable' protocol
9 | /// }
10 | /// ```
11 | public struct EID<P: Codable>: Equatable, Hashable, CustomStringConvertible, ExpressibleByStringLiteral {
| `- note: consider making generic struct 'EID' conform to the 'Sendable' protocol
12 | /// The unique id.
13 | public let id: String
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Sendable.swift:159:50: warning: capture of 'payload' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 | }
157 |
158 | public func send<T>(event: EID<T>, payload: T?) -> EventLoopFuture<Void> where T : Decodable, T : Encodable {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
159 | flatMap { $0.send(event: event, payload: payload) }
| `- warning: capture of 'payload' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
160 | }
161 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:25:34: warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
23 | }
24 |
25 | internal protocol _Subscribable: class, Subscribable {
| `- warning: using 'class' keyword to define a class-constrained protocol is deprecated; use 'AnyObject' instead
26 | var eventLoop: EventLoop { get }
27 | var clients: [_AnyClient] { get }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:38:17: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | self.eventLoop.submit {
37 | channels.forEach { channel in
38 | self.clients.forEach {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
39 | $0.channels.insert(channel)
40 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:38:17: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
36 | self.eventLoop.submit {
37 | channels.forEach { channel in
38 | self.clients.forEach {
| `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
39 | $0.channels.insert(channel)
40 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:52:17: warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | self.eventLoop.submit {
51 | channels.forEach { channel in
52 | self.clients.forEach {
| `- warning: capture of 'self' with non-sendable type 'Self' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | $0.channels.remove(channel)
54 | }
<unknown>:0: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:52:17: warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
50 | self.eventLoop.submit {
51 | channels.forEach { channel in
52 | self.clients.forEach {
| `- warning: capture of 'self' with non-sendable type 'Self' in an isolated closure; this is an error in the Swift 6 language mode
53 | $0.channels.remove(channel)
54 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:68:50: warning: capture of 'self' with non-sendable type 'EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
66 |
67 | public func subscribe(to channels: [String]) -> EventLoopFuture<Void> {
68 | flatMap { $0.subscribe(to: channels, on: self.eventLoop) }
| `- warning: capture of 'self' with non-sendable type 'EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
69 | }
70 |
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/Subscribable.swift:76:54: warning: capture of 'self' with non-sendable type 'EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
74 |
75 | public func unsubscribe(from channels: [String]) -> EventLoopFuture<Void> {
76 | flatMap { $0.unsubscribe(from: channels, on: self.eventLoop) }
| `- warning: capture of 'self' with non-sendable type 'EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | }
78 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/Broadcaster.swift:92:32: warning: capture of 'client' with non-sendable type 'any AnyClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | filter(client).map { leave in
91 | if !leave {
92 | ids.insert(client.id)
| `- warning: capture of 'client' with non-sendable type 'any AnyClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Protocols/AnyClient.swift:5:17: note: protocol 'AnyClient' does not conform to the 'Sendable' protocol
3 | import NIOWebSocket
4 |
5 | public protocol AnyClient: Broadcastable, Disconnectable, Subscribable, Sendable {
| `- note: protocol 'AnyClient' does not conform to the 'Sendable' protocol
6 | var id: UUID { get }
7 | var application: Application { get }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/Broadcaster.swift:92:21: warning: mutation of captured var 'ids' in concurrently-executing code; this is an error in the Swift 6 language mode
90 | filter(client).map { leave in
91 | if !leave {
92 | ids.insert(client.id)
| `- warning: mutation of captured var 'ids' in concurrently-executing code; this is an error in the Swift 6 language mode
93 | }
94 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/Broadcaster.swift:96:13: warning: capture of 'self' with non-sendable type 'Broadcaster' in a `@Sendable` closure; this is an error in the Swift 6 language mode
4 | import NIOWebSocket
5 |
6 | public class Broadcaster: Disconnectable, _Disconnectable, Sendable, _Sendable, Subscribable {
| `- note: class 'Broadcaster' does not conform to the 'Sendable' protocol
7 | let eventLoop: EventLoop
8 | var clients: [AnyClient]
:
94 | }
95 | }.flatten(on: eventLoop).map {
96 | self.clients.removeAll { ids.contains($0.id) }
| `- warning: capture of 'self' with non-sendable type 'Broadcaster' in a `@Sendable` closure; this is an error in the Swift 6 language mode
97 | }.transform(to: self)
98 | }
/Users/admin/builder/spi-builder-workspace/Sources/WS/Utilities/Broadcaster.swift:96:38: warning: reference to captured var 'ids' in concurrently-executing code; this is an error in the Swift 6 language mode
94 | }
95 | }.flatten(on: eventLoop).map {
96 | self.clients.removeAll { ids.contains($0.id) }
| `- warning: reference to captured var 'ids' in concurrently-executing code; this is an error in the Swift 6 language mode
97 | }.transform(to: self)
98 | }
Build complete! (136.37s)
Fetching https://github.com/vapor/websocket-kit.git
Fetching https://github.com/vapor/vapor.git
[1/2473] Fetching websocket-kit
[2474/71167] Fetching websocket-kit, vapor
Fetched https://github.com/vapor/websocket-kit.git from cache (2.70s)
Fetched https://github.com/vapor/vapor.git from cache (2.70s)
Computing version for https://github.com/vapor/websocket-kit.git
Computed https://github.com/vapor/websocket-kit.git at 2.15.0 (0.76s)
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-nio-transport-services.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-nio.git
[1/1563] Fetching swift-atomics
[48/3668] Fetching swift-atomics, swift-nio-transport-services
[128/8501] Fetching swift-atomics, swift-nio-transport-services, swift-nio-extras
[901/20769] Fetching swift-atomics, swift-nio-transport-services, swift-nio-extras, swift-nio-ssl
[9953/86379] Fetching swift-atomics, swift-nio-transport-services, swift-nio-extras, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-extras.git from cache (1.27s)
[5510/81546] Fetching swift-atomics, swift-nio-transport-services, swift-nio-ssl, swift-nio
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (3.69s)
Fetched https://github.com/apple/swift-nio-ssl.git from cache (3.69s)
Fetched https://github.com/apple/swift-atomics.git from cache (3.69s)
Fetched https://github.com/apple/swift-nio.git from cache (3.69s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.58s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.26.0 (0.78s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.21.0 (0.58s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.65.0 (0.67s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
[1/3523] Fetching swift-system
[600/17552] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.78s)
Fetched https://github.com/apple/swift-system.git from cache (1.78s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.3.0 (0.53s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.0 (0.87s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.22.0 (0.70s)
Fetching https://github.com/apple/swift-http-types
Fetching https://github.com/apple/swift-nio-http2.git
[1/414] Fetching swift-http-types
[200/10647] Fetching swift-http-types, swift-nio-http2
Fetched https://github.com/apple/swift-http-types from cache (1.52s)
Fetched https://github.com/apple/swift-nio-http2.git from cache (1.52s)
Computing version for https://github.com/apple/swift-http-types
Computed https://github.com/apple/swift-http-types at 1.1.0 (0.67s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.31.0 (0.53s)
Computing version for https://github.com/vapor/vapor.git
Computed https://github.com/vapor/vapor.git at 4.101.1 (0.74s)
Fetching https://github.com/vapor/multipart-kit.git
Fetching https://github.com/apple/swift-algorithms.git
Fetching https://github.com/vapor/routing-kit.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-crypto.git
Fetching https://github.com/apple/swift-metrics.git
Fetching https://github.com/vapor/console-kit.git
[1/1845] Fetching multipart-kit
[75/7073] Fetching multipart-kit, swift-algorithms
[128/9101] Fetching multipart-kit, swift-algorithms, swift-metrics
[129/29791] Fetching multipart-kit, swift-algorithms, swift-metrics, routing-kit
[130/33152] Fetching multipart-kit, swift-algorithms, swift-metrics, routing-kit, swift-log
[599/41006] Fetching multipart-kit, swift-algorithms, swift-metrics, routing-kit, swift-log, swift-crypto
[914/46407] Fetching multipart-kit, swift-algorithms, swift-metrics, routing-kit, swift-log, swift-crypto, console-kit
Fetched https://github.com/vapor/console-kit.git from cache (1.75s)
Fetching https://github.com/vapor/async-kit.git
Fetched https://github.com/apple/swift-log.git from cache (1.75s)
Fetched https://github.com/apple/swift-metrics.git from cache (1.75s)
Fetched https://github.com/vapor/routing-kit.git from cache (1.75s)
Fetching https://github.com/swift-server/async-http-client.git
Fetched https://github.com/apple/swift-crypto.git from cache (1.75s)
[5740/7073] Fetching multipart-kit, swift-algorithms
Fetched https://github.com/vapor/multipart-kit.git from cache (2.20s)
Fetched https://github.com/apple/swift-algorithms.git from cache (2.21s)
[1/2335] Fetching async-kit
[562/14999] Fetching async-kit, async-http-client
Fetched https://github.com/vapor/async-kit.git from cache (1.03s)
[887/12664] Fetching async-http-client
Fetched https://github.com/swift-server/async-http-client.git from cache (1.43s)
Computing version for https://github.com/vapor/routing-kit.git
Computed https://github.com/vapor/routing-kit.git at 4.9.1 (0.54s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.5.4 (0.70s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.0 (0.68s)
Fetching https://github.com/apple/swift-numerics.git
[1/5472] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (1.14s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.2 (0.63s)
Computing version for https://github.com/vapor/console-kit.git
Computed https://github.com/vapor/console-kit.git at 4.14.3 (0.54s)
Computing version for https://github.com/vapor/async-kit.git
Computed https://github.com/vapor/async-kit.git at 1.19.0 (0.66s)
Computing version for https://github.com/swift-server/async-http-client.git
Computed https://github.com/swift-server/async-http-client.git at 1.21.1 (0.52s)
Computing version for https://github.com/vapor/multipart-kit.git
Computed https://github.com/vapor/multipart-kit.git at 4.7.0 (0.53s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.4.4 (0.65s)
Computing version for https://github.com/apple/swift-crypto.git
Computed https://github.com/apple/swift-crypto.git at 3.4.0 (0.54s)
Creating working copy for https://github.com/vapor/multipart-kit.git
Working copy of https://github.com/vapor/multipart-kit.git resolved at 4.7.0
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.5.4
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.65.0
Creating working copy for https://github.com/vapor/websocket-kit.git
Working copy of https://github.com/vapor/websocket-kit.git resolved at 2.15.0
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.26.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.0
Creating working copy for https://github.com/swift-server/async-http-client.git
Working copy of https://github.com/swift-server/async-http-client.git resolved at 1.21.1
Creating working copy for https://github.com/apple/swift-http-types
Working copy of https://github.com/apple/swift-http-types resolved at 1.1.0
Creating working copy for https://github.com/apple/swift-metrics.git
Working copy of https://github.com/apple/swift-metrics.git resolved at 2.4.4
Creating working copy for https://github.com/vapor/routing-kit.git
Working copy of https://github.com/vapor/routing-kit.git resolved at 4.9.1
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.21.0
Creating working copy for https://github.com/vapor/async-kit.git
Working copy of https://github.com/vapor/async-kit.git resolved at 1.19.0
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.31.0
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.22.0
Creating working copy for https://github.com/apple/swift-crypto.git
Working copy of https://github.com/apple/swift-crypto.git resolved at 3.4.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/vapor/console-kit.git
Working copy of https://github.com/vapor/console-kit.git resolved at 4.14.3
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.2
Creating working copy for https://github.com/vapor/vapor.git
Working copy of https://github.com/vapor/vapor.git resolved at 4.101.1
warning: 'swift-system': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-system/Sources/System/CMakeLists.txt
warning: 'swift-algorithms': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-algorithms/Sources/Algorithms/Documentation.docc
Build complete.
{
"dependencies" : [
{
"identity" : "vapor",
"requirement" : {
"range" : [
{
"lower_bound" : "4.0.0",
"upper_bound" : "5.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/vapor/vapor.git"
},
{
"identity" : "websocket-kit",
"requirement" : {
"range" : [
{
"lower_bound" : "2.0.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/vapor/websocket-kit.git"
}
],
"manifest_display_name" : "AwesomeWS",
"name" : "AwesomeWS",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "WS",
"targets" : [
"WS"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "WSTests",
"module_type" : "SwiftTarget",
"name" : "WSTests",
"path" : "Tests/WSTests",
"product_dependencies" : [
"WebSocketKit"
],
"sources" : [
"WSTests.swift",
"XCTestManifests.swift"
],
"target_dependencies" : [
"WS"
],
"type" : "test"
},
{
"c99name" : "WS",
"module_type" : "SwiftTarget",
"name" : "WS",
"path" : "Sources/WS",
"product_dependencies" : [
"Vapor",
"WebSocketKit"
],
"product_memberships" : [
"WS"
],
"sources" : [
"Enums/ExchangeMode.swift",
"Extensions/Application+Configurator.swift",
"Extensions/HTTPServerConfiguration+Address.swift",
"Extensions/Request+Observer.swift",
"Models/Configurator.swift",
"Models/EID.swift",
"Models/Event.swift",
"Models/Nothing.swift",
"Models/OriginalRequest.swift",
"Models/WSID.swift",
"Objects/Client.swift",
"Observers/BaseObserver.swift",
"Observers/BindableObserver.swift",
"Observers/ClassicObserver.swift",
"Observers/DeclarativeObserver.swift",
"Protocols/AnyClient.swift",
"Protocols/AnyObserver.swift",
"Protocols/Bindable.swift",
"Protocols/Broadcastable.swift",
"Protocols/Declarativable.swift",
"Protocols/Decoder.swift",
"Protocols/Delegate.swift",
"Protocols/Disconnectable.swift",
"Protocols/Encoder.swift",
"Protocols/Loggable.swift",
"Protocols/Sendable.swift",
"Protocols/Subscribable.swift",
"Utilities/Broadcaster.swift",
"Utilities/DefaultDateFormatter.swift",
"Utilities/EndpointBuilder.swift",
"Utilities/Storage.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Done.