Build Information
Successful build of AwesomeWS, reference 2.4.3 (2c1304
), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 20:26:17 UTC.
Swift 6 data race errors: 4
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
[1303/1424] Compiling NIOHPACK StaticHeaderTable.swift
[1304/1424] Compiling NIOFileSystem Exports.swift
[1305/1424] Emitting module NIOFileSystem
[1310/1424] Compiling NIOExtras RequestResponseWithIDHandler.swift
[1313/1424] Compiling MultipartKit FormDataEncoder.SingleValueContainer.swift
[1314/1424] Compiling MultipartKit FormDataEncoder.UnkeyedContainer.swift
[1315/1425] Compiling NIOHPACK HuffmanCoding.swift
[1316/1425] Compiling NIOHPACK HuffmanTables.swift
[1317/1425] Compiling _NIOFileSystemFoundationCompat Data+FileSystem.swift
[1318/1425] Compiling _NIOFileSystemFoundationCompat Date+FileInfo.swift
[1319/1425] Emitting module _NIOFileSystemFoundationCompat
[1320/1425] Compiling NIOHTTPCompression HTTPResponseDecompressor.swift
[1321/1425] Compiling NIOHTTPCompression HTTPRequestCompressor.swift
[1322/1425] Compiling NIOHTTPCompression HTTPDecompression.swift
[1323/1425] Compiling NIOHTTPCompression HTTPCompression.swift
[1324/1425] Compiling NIOHTTPCompression HTTPRequestDecompressor.swift
[1325/1425] Emitting module NIOHTTPCompression
[1326/1425] Compiling NIOHTTPCompression HTTPResponseCompressor.swift
[1328/1425] Compiling MultipartKit FormDataDecoder.UnkeyedContainer.swift
[1334/1425] Compiling MultipartKit Storage.swift
[1335/1425] Compiling MultipartKit FormDataDecoder.KeyedContainer.swift
[1336/1425] Compiling MultipartKit FormDataDecoder.SingleValueContainer.swift
[1338/1425] Compiling MultipartKit FormDataEncoder.swift
[1346/1425] Compiling MultipartKit FormDataDecoder.swift
[1348/1425] Compiling NIOTransportServices TCPOptions+SocketChannelOption.swift
[1349/1425] Compiling NIOTransportServices UDPOptions+SocketChannelOption.swift
[1350/1425] Compiling NIOWebSocket WebSocketFrameDecoder.swift
[1351/1425] Compiling NIOWebSocket WebSocketFrameEncoder.swift
[1352/1425] Compiling NIOWebSocket SHA1.swift
[1353/1425] Compiling NIOWebSocket WebSocketErrorCodes.swift
[1354/1425] Compiling NIOWebSocket NIOWebSocketFrameAggregator.swift
[1355/1425] Compiling NIOWebSocket NIOWebSocketServerUpgrader.swift
[1356/1425] Compiling NIOWebSocket WebSocketFrame.swift
[1365/1425] Compiling NIOWebSocket NIOWebSocketClientUpgrader.swift
[1366/1425] Emitting module NIOWebSocket
[1379/1425] Emitting module MultipartKit
[1386/1427] Emitting module NIOSSL
[1387/1427] Emitting module NIOExtras
[1390/1427] Compiling NIOHPACK HeaderTables.swift
[1391/1427] Compiling NIOHPACK HPACKHeader.swift
[1392/1427] Compiling NIOHPACK HPACKEncoder.swift
[1393/1427] Compiling NIOHPACK HPACKErrors.swift
[1394/1427] Emitting module NIOHPACK
[1395/1427] Compiling MultipartKit MultipartSerializer.swift
[1396/1427] Compiling MultipartKit Utilities.swift
[1416/1487] Compiling NIOHTTP2 HTTP2ConnectionStateChange.swift
[1417/1487] Compiling NIOHTTP2 HTTP2Error.swift
[1418/1487] Compiling NIOHTTP2 HTTP2ErrorCode.swift
[1419/1487] Compiling NIOExtras WritePCAPHandler.swift
[1420/1495] Compiling NIOHTTP2 ReceivingRstStreamState.swift
[1421/1495] Compiling NIOHTTP2 ReceivingWindowUpdateState.swift
[1422/1495] Compiling NIOHTTP2 MaySendFrames.swift
[1423/1495] Compiling NIOHTTP2 SendingDataState.swift
[1424/1495] Compiling NIOHTTP2 SendingGoawayState.swift
[1425/1495] Compiling NIOHTTP2 SendingHeadersState.swift
[1426/1495] Compiling NIOHTTP2 SendingPushPromiseState.swift
[1427/1495] Compiling NIOHTTP2 LocallyQuiescingState.swift
[1428/1495] Compiling NIOHTTP2 QuiescingState.swift
[1429/1495] Compiling NIOHTTP2 RemotelyQuiescingState.swift
[1430/1495] Compiling NIOHTTP2 SendAndReceiveGoawayState.swift
[1431/1495] Compiling NIOHTTP2 StateMachineResult.swift
[1432/1495] Compiling NIOHTTP2 ContentLengthVerifier.swift
[1433/1495] Compiling NIOHTTP2 DOSHeuristics.swift
[1434/1501] Compiling WebSocketKit WebSocket.swift
[1435/1501] Compiling WebSocketKit WebSocketHandler.swift
[1436/1501] Compiling WebSocketKit WebSocket+Concurrency.swift
[1437/1501] Compiling WebSocketKit HTTPUpgradeRequestHandler.swift
[1438/1501] Compiling WebSocketKit Exports.swift
[1439/1501] Compiling WebSocketKit WebSocket+Connect.swift
[1440/1501] Emitting module WebSocketKit
[1441/1501] Compiling WebSocketKit WebSocketClient.swift
[1442/1501] Compiling NIOHTTP2 HTTP2Settings.swift
[1443/1501] Compiling NIOHTTP2 HTTP2Stream.swift
[1444/1501] Compiling NIOHTTP2 HTTP2StreamChannel+OutboundStreamMultiplexer.swift
[1445/1501] Compiling NIOHTTP2 HTTP2StreamChannel.swift
[1446/1501] Compiling NIOHTTP2 HTTP2StreamDelegate.swift
[1447/1501] Compiling NIOHTTP2 HTTP2StreamID.swift
[1448/1501] Compiling NIOHTTP2 HTTP2StreamMultiplexer.swift
[1449/1501] Compiling NIOHTTP2 HTTP2ToHTTP1Codec.swift
[1450/1501] Compiling NIOHTTP2 HTTP2UserEvents.swift
[1451/1501] Compiling NIOHTTP2 InboundEventBuffer.swift
[1452/1501] Compiling NIOHTTP2 InboundWindowManager.swift
[1453/1501] Compiling NIOHTTP2 MultiplexerAbstractChannel.swift
[1454/1501] Compiling NIOHTTP2 StreamChannelFlowController.swift
[1455/1501] Compiling NIOHTTP2 StreamChannelList.swift
[1456/1501] Compiling NIOHTTP2 StreamMap.swift
[1457/1501] Compiling NIOHTTP2 StreamStateMachine.swift
[1458/1501] Compiling NIOHTTP2 UnsafeTransfer.swift
[1459/1501] Compiling NIOHTTP2 WatermarkedFlowController.swift
[1460/1501] Compiling NIOHTTP2 SendingRstStreamState.swift
[1461/1501] Compiling NIOHTTP2 SendingWindowUpdateState.swift
[1462/1501] Compiling NIOHTTP2 HTTP2SettingsState.swift
[1463/1501] Compiling NIOHTTP2 HasExtendedConnectSettings.swift
[1464/1501] Compiling NIOHTTP2 HasFlowControlWindows.swift
[1465/1501] Compiling NIOHTTP2 HasLocalSettings.swift
[1466/1501] Compiling NIOHTTP2 HasRemoteSettings.swift
[1467/1501] Compiling NIOHTTP2 Error+Any.swift
[1468/1501] Compiling NIOHTTP2 ConcurrentStreamBuffer.swift
[1469/1501] Compiling NIOHTTP2 ControlFrameBuffer.swift
[1470/1501] Compiling NIOHTTP2 OutboundFlowControlBuffer.swift
[1471/1501] Compiling NIOHTTP2 OutboundFrameBuffer.swift
[1472/1501] Compiling NIOHTTP2 HPACKHeaders+Validation.swift
[1473/1501] Compiling NIOHTTP2 HTTP2ChannelHandler+InboundStreamMultiplexer.swift
[1474/1501] Compiling NIOHTTP2 ConnectionStateMachine.swift
[1475/1501] Compiling NIOHTTP2 ConnectionStreamsState.swift
[1476/1501] Compiling NIOHTTP2 MayReceiveFrames.swift
[1477/1501] Compiling NIOHTTP2 ReceivingDataState.swift
[1478/1501] Compiling NIOHTTP2 ReceivingGoAwayState.swift
[1479/1501] Compiling NIOHTTP2 ReceivingHeadersState.swift
[1480/1501] Compiling NIOHTTP2 ReceivingPushPromiseState.swift
[1481/1501] Compiling NIOHTTP2 HTTP2FlowControlWindow.swift
[1482/1501] Compiling NIOHTTP2 HTTP2Frame.swift
[1483/1501] Compiling NIOHTTP2 HTTP2FrameEncoder.swift
[1484/1501] Compiling NIOHTTP2 HTTP2FrameParser.swift
[1485/1501] Compiling NIOHTTP2 HTTP2PingData.swift
[1486/1501] Compiling NIOHTTP2 HTTP2PipelineHelpers.swift
[1487/1501] Emitting module NIOHTTP2
[1488/1501] Compiling NIOHTTP2 HTTP2ChannelHandler+InlineStreamMultiplexer.swift
[1489/1501] Compiling NIOHTTP2 HTTP2ChannelHandler.swift
[1490/1501] Compiling NIOHTTP2 HTTP2CommonInboundStreamMultiplexer.swift
[1494/1560] Emitting module AsyncKit
[1495/1560] Compiling AsyncHTTPClient BestEffortHashableTLSConfiguration.swift
[1496/1560] Compiling AsyncHTTPClient Configuration+BrowserLike.swift
[1497/1560] Compiling AsyncHTTPClient ConnectionPool.swift
[1498/1560] Compiling AsyncHTTPClient HTTP1ProxyConnectHandler.swift
[1499/1560] Compiling AsyncHTTPClient SOCKSEventsHandler.swift
[1500/1560] Compiling AsyncHTTPClient TLSEventsHandler.swift
[1501/1560] Compiling AsyncHTTPClient HTTP1ClientChannelHandler.swift
[1502/1566] Compiling AsyncHTTPClient HTTPConnectionPool+HTTP2StateMachine.swift
[1503/1566] Compiling AsyncHTTPClient HTTPConnectionPool+RequestQueue.swift
[1504/1566] Compiling AsyncHTTPClient HTTPConnectionPool+StateMachine.swift
[1505/1566] Compiling AsyncHTTPClient ConnectionTarget.swift
[1506/1566] Compiling AsyncHTTPClient DeconstructedURL.swift
[1507/1566] Compiling AsyncHTTPClient FileDownloadDelegate.swift
[1508/1566] Compiling AsyncHTTPClient RequestValidation.swift
[1509/1566] Compiling AsyncHTTPClient SSLContextCache.swift
[1510/1566] Compiling AsyncHTTPClient Scheme.swift
[1511/1566] Compiling AsyncHTTPClient Singleton.swift
[1512/1566] Compiling AsyncHTTPClient StringConvertibleInstances.swift
[1513/1566] Compiling AsyncHTTPClient Utils.swift
[1514/1566] Compiling AsyncHTTPClient HTTPConnectionPool+Manager.swift
[1515/1566] Compiling AsyncHTTPClient HTTPConnectionPool.swift
[1516/1566] Compiling AsyncHTTPClient HTTPExecutableRequest.swift
[1517/1566] Compiling AsyncHTTPClient HTTPRequestStateMachine+Demand.swift
[1518/1566] Compiling AsyncHTTPClient HTTPRequestStateMachine.swift
[1519/1566] Compiling AsyncHTTPClient RequestBodyLength.swift
[1520/1566] Compiling AsyncHTTPClient AnyAsyncSequence.swift
[1521/1566] Compiling AsyncHTTPClient AnyAsyncSequenceProucerDelete.swift
[1522/1566] Compiling AsyncHTTPClient AsyncLazySequence.swift
[1523/1566] Compiling AsyncHTTPClient HTTPClient+execute.swift
[1524/1566] Compiling AsyncHTTPClient HTTPClient+shutdown.swift
[1525/1566] Compiling AsyncHTTPClient HTTPClientRequest+Prepared.swift
[1526/1566] Compiling AsyncHTTPClient HTTPClientRequest+auth.swift
[1527/1566] Compiling AsyncHTTPClient NWErrorHandler.swift
[1528/1566] Compiling AsyncHTTPClient NWWaitingHandler.swift
[1529/1566] Compiling AsyncHTTPClient TLSConfiguration.swift
[1530/1566] Compiling AsyncHTTPClient RedirectState.swift
[1531/1566] Compiling AsyncHTTPClient RequestBag+StateMachine.swift
[1532/1566] Compiling AsyncHTTPClient RequestBag.swift
[1533/1566] Compiling AsyncHTTPClient HTTPClientRequest.swift
[1534/1566] Compiling AsyncHTTPClient HTTPClientResponse.swift
[1535/1566] Compiling AsyncHTTPClient SingleIteratorPrecondition.swift
[1536/1566] Compiling AsyncHTTPClient Transaction+StateMachine.swift
[1537/1566] Compiling AsyncHTTPClient Transaction.swift
[1538/1566] Compiling AsyncHTTPClient Base64.swift
[1539/1566] Compiling AsyncHTTPClient BasicAuth.swift
[1540/1566] Compiling AsyncHTTPClient RequestFramingMetadata.swift
[1541/1566] Compiling AsyncHTTPClient RequestOptions.swift
[1542/1566] Compiling AsyncHTTPClient HTTPConnectionPool+Backoff.swift
[1543/1566] Compiling AsyncHTTPClient HTTPConnectionPool+HTTP1Connections.swift
[1544/1566] Compiling AsyncHTTPClient HTTPConnectionPool+HTTP1StateMachine.swift
[1545/1566] Compiling AsyncHTTPClient HTTPConnectionPool+HTTP2Connections.swift
[1546/1566] Emitting module AsyncHTTPClient
[1547/1566] Compiling AsyncHTTPClient FoundationExtensions.swift
[1548/1566] Compiling AsyncHTTPClient HTTPClient+HTTPCookie.swift
[1549/1566] Compiling AsyncHTTPClient HTTPClient+Proxy.swift
[1550/1566] Compiling AsyncHTTPClient HTTPClient.swift
[1551/1566] Compiling AsyncHTTPClient HTTPHandler.swift
[1552/1566] Compiling AsyncHTTPClient LRUCache.swift
[1553/1566] Compiling AsyncHTTPClient HTTP1Connection.swift
[1554/1566] Compiling AsyncHTTPClient HTTP1ConnectionStateMachine.swift
[1555/1566] Compiling AsyncHTTPClient HTTP2ClientRequestHandler.swift
[1556/1566] Compiling AsyncHTTPClient HTTP2Connection.swift
[1557/1566] Compiling AsyncHTTPClient HTTP2IdleHandler.swift
[1558/1566] Compiling AsyncHTTPClient HTTPConnectionEvent.swift
[1559/1566] Compiling AsyncHTTPClient HTTPConnectionPool+Factory.swift
[1567/1757] Compiling Vapor ServeCommand.swift
[1568/1757] Compiling Vapor AnyResponse+Concurrency.swift
[1569/1757] Compiling Vapor AsyncBasicResponder.swift
[1570/1757] Compiling Vapor AsyncMiddleware.swift
[1571/1757] Compiling Vapor AsyncPasswordHasher+Concurrency.swift
[1572/1757] Compiling Vapor AsyncSessionDriver.swift
[1573/1757] Compiling Vapor Authentication+Concurrency.swift
[1574/1757] Compiling Vapor Cache+Concurrency.swift
[1575/1757] Compiling Vapor Client+Concurrency.swift
[1576/1757] Compiling Vapor RequestBody+Concurrency.swift
[1577/1757] Compiling Vapor Responder+Concurrency.swift
[1578/1757] Compiling Vapor ResponseCodable+Concurrency.swift
[1579/1757] Compiling Vapor RoutesBuilder+Concurrency.swift
[1580/1757] Compiling Vapor ViewRenderer+Concurrency.swift
[1581/1757] Compiling Vapor WebSocket+Concurrency.swift
[1582/1757] Compiling Vapor ContainerGetPathExecutor.swift
[1583/1757] Compiling Vapor Content.swift
[1584/1757] Compiling Vapor ContentCoders.swift
[1585/1757] Compiling Vapor ContentConfiguration.swift
[1586/1757] Compiling Vapor ContentContainer.swift
[1587/1757] Compiling Vapor JSONCoder+Custom.swift
[1588/1757] Compiling Vapor Exports.swift
[1589/1757] Compiling Vapor Application+HTTP.swift
[1590/1757] Compiling Vapor BasicResponder.swift
[1591/1757] Compiling Vapor BodyStream.swift
[1592/1757] Compiling Vapor Application+HTTP+Client.swift
[1593/1757] Compiling Vapor EventLoopHTTPClient.swift
[1594/1757] Compiling Vapor EndpointCache.swift
[1595/1757] Compiling Vapor HTTPMethod+String.swift
[1596/1757] Compiling Vapor HTTPStatus.swift
[1597/1757] Compiling Vapor HTTPCookies.swift
[1598/1757] Compiling Vapor HTTPHeaderCacheControl.swift
[1599/1757] Compiling Vapor HTTPHeaderExpires.swift
[1600/1757] Compiling Vapor HTTPHeaderLastModified.swift
[1601/1757] Compiling Vapor HTTPHeaders+Cache.swift
[1602/1757] Compiling Vapor HTTPHeaders+Connection.swift
[1603/1757] Compiling Vapor HTTPHeaders+ContentDisposition.swift
[1604/1757] Compiling Vapor HTTPHeaders+ContentRange.swift
[1605/1757] Compiling Vapor HTTPHeaders+Directive.swift
[1606/1757] Compiling Vapor HTTPHeaders+Forwarded.swift
[1607/1757] Compiling Vapor HTTPHeaders+Link.swift
[1608/1757] Compiling Vapor HTTPHeaders+Name.swift
[1609/1778] Compiling Vapor HTTPHeaders+ResponseCompression.swift
[1610/1778] Compiling Vapor HTTPHeaders.swift
[1611/1778] Compiling Vapor HTTPMediaType.swift
[1612/1778] Compiling Vapor HTTPMediaTypePreference.swift
[1613/1778] Compiling Vapor Responder.swift
[1614/1778] Compiling Vapor Application+HTTP+Server.swift
[1615/1778] Compiling Vapor HTTPServer.swift
[1616/1778] Compiling Vapor HTTPServerConfiguration+RequestDecompressionConfiguration.swift
[1617/1778] Compiling Vapor HTTPServerConfiguration+ResponseCompressionConfiguration.swift
[1618/1778] Compiling Vapor HTTPServerHandler.swift
[1619/1778] Compiling Vapor HTTPServerRequestDecoder.swift
[1620/1778] Compiling Vapor HTTPServerResponseEncoder.swift
[1621/1778] Compiling Vapor HTTPServerUpgradeHandler.swift
[1622/1778] Compiling Vapor Logger+Report.swift
[1623/1778] Compiling Vapor LoggingSystem+Environment.swift
[1624/1778] Compiling Vapor Application+Middleware.swift
[1625/1778] Compiling Vapor CORSMiddleware.swift
[1626/1778] Compiling Vapor ErrorMiddleware.swift
[1627/1778] Compiling Vapor FileMiddleware.swift
[1628/1778] Compiling Vapor Middleware.swift
[1629/1778] Compiling Vapor MiddlewareConfiguration.swift
[1630/1778] Compiling Vapor And.swift
[1631/1778] Compiling Vapor Case.swift
[1632/1778] Compiling Vapor CharacterSet.swift
[1633/1778] Compiling Vapor Count.swift
[1634/1778] Compiling Vapor Email.swift
[1635/1778] Compiling Vapor Empty.swift
[1636/1778] Compiling Vapor In.swift
[1637/1778] Compiling Vapor Nil.swift
[1638/1778] Compiling Vapor NilIgnoring.swift
[1639/1778] Compiling Vapor Not.swift
[1640/1778] Compiling Vapor Or.swift
[1641/1778] Compiling Vapor Pattern.swift
[1642/1778] Compiling Vapor Range.swift
[1643/1778] Compiling Vapor URL.swift
[1644/1778] Compiling Vapor Valid.swift
[1645/1778] Compiling Vapor Application+Views.swift
[1646/1778] Compiling Vapor PlaintextRenderer.swift
[1647/1778] Compiling Vapor Request+View.swift
[1648/1778] Compiling Vapor View.swift
[1649/1778] Compiling Vapor ViewRenderer.swift
[1650/1778] Compiling Vapor _Deprecations.swift
[1651/1778] Compiling Vapor Application.swift
[1652/1778] Compiling Vapor AuthenticationCache.swift
[1653/1778] Compiling Vapor Authenticator.swift
[1654/1778] Compiling Vapor BasicAuthorization.swift
[1655/1778] Compiling Vapor BearerAuthorization.swift
[1656/1778] Compiling Vapor GuardMiddleware.swift
[1657/1778] Compiling Vapor RedirectMiddleware.swift
[1658/1778] Compiling Vapor SessionAuthenticatable.swift
[1659/1778] Compiling Vapor Bcrypt.swift
[1660/1778] Compiling Vapor Application+Cache.swift
[1661/1778] Compiling Vapor Cache.swift
[1662/1778] Compiling Vapor CacheExpirationTime.swift
[1663/1778] Compiling Vapor MemoryCache.swift
[1664/1778] Compiling Vapor Request+Cache.swift
[1665/1778] Compiling Vapor Application+Clients.swift
[1666/1778] Compiling Vapor Client.swift
[1667/1778] Compiling Vapor ClientRequest.swift
[1668/1778] Compiling Vapor ClientResponse.swift
[1669/1778] Compiling Vapor Request+Client.swift
[1670/1778] Compiling Vapor BootCommand.swift
[1671/1778] Compiling Vapor CommandContext+Application.swift
[1672/1778] Compiling Vapor RoutesCommand.swift
[1673/1778] Compiling Vapor SessionsConfiguration.swift
[1674/1778] Compiling Vapor SessionsMiddleware.swift
[1675/1778] Compiling Vapor URLEncodedFormData.swift
[1676/1778] Compiling Vapor URLEncodedFormDecoder.swift
[1677/1778] Compiling Vapor URLEncodedFormEncoder.swift
[1678/1778] Compiling Vapor URLEncodedFormError.swift
[1679/1778] Compiling Vapor URLEncodedFormParser.swift
[1680/1778] Compiling Vapor URLEncodedFormSerializer.swift
[1681/1778] Compiling Vapor URLQueryFragmentConvertible.swift
[1682/1778] Compiling Vapor AnyResponse.swift
[1683/1778] Compiling Vapor Array+Random.swift
[1684/1778] Compiling Vapor Base32.swift
[1685/1778] Compiling Vapor Base64.swift
[1686/1778] Compiling Vapor BaseN.swift
[1687/1778] Compiling Vapor BasicCodingKey.swift
[1688/1778] Compiling Vapor ByteCount.swift
[1689/1778] Compiling Vapor Bytes+Hex.swift
[1690/1778] Compiling Vapor Bytes+SecureCompare.swift
[1691/1778] Compiling Vapor Collection+Safe.swift
[1692/1778] Compiling Vapor DataProtocol+Copy.swift
[1693/1778] Compiling Vapor DecoderUnwrapper.swift
[1694/1778] Compiling Vapor DirectoryConfiguration.swift
[1695/1778] Compiling Vapor DotEnv.swift
[1696/1778] Compiling Vapor Extendable.swift
[1697/1778] Compiling Vapor File.swift
[1698/1778] Compiling Vapor FileIO.swift
[1699/1778] Compiling Vapor LifecycleHandler.swift
[1700/1778] Compiling Vapor OptionalType.swift
[1701/1778] Compiling Vapor RFC1123.swift
[1702/1778] Compiling Vapor SocketAddress+Hostname.swift
[1703/1778] Compiling Vapor Storage.swift
[1704/1778] Compiling Vapor String+IsIPAddress.swift
[1705/1778] Compiling Vapor Thread.swift
[1706/1778] Compiling Vapor URI.swift
[1707/1778] Compiling Vapor RangeResult.swift
[1708/1778] Compiling Vapor Validatable.swift
[1709/1778] Compiling Vapor Validation.swift
[1710/1778] Compiling Vapor ValidationKey.swift
[1711/1778] Compiling Vapor Validations.swift
[1712/1778] Compiling Vapor ValidationsError.swift
[1713/1778] Compiling Vapor Validator.swift
[1714/1778] Compiling Vapor ValidatorResult.swift
[1715/1778] Compiling Vapor Application+Routes.swift
[1716/1778] Compiling Vapor Parameters+Require.swift
[1717/1778] Compiling Vapor Request+WebSocket.swift
[1718/1778] Compiling Vapor Route.swift
[1719/1778] Compiling Vapor RouteCollection.swift
[1720/1778] Compiling Vapor Routes.swift
[1721/1778] Compiling Vapor RoutesBuilder+Group.swift
[1722/1778] Compiling Vapor RoutesBuilder+Method.swift
[1723/1778] Compiling Vapor RoutesBuilder+Middleware.swift
[1724/1778] Compiling Vapor RoutesBuilder+WebSocket.swift
[1725/1778] Compiling Vapor RoutesBuilder.swift
[1726/1778] Compiling Vapor OTP.swift
[1727/1778] Compiling Vapor Application+Servers.swift
[1728/1778] Compiling Vapor Server.swift
[1729/1778] Compiling Vapor Application+Sessions.swift
[1730/1778] Compiling Vapor MemorySessions.swift
[1731/1778] Compiling Vapor Request+Session.swift
[1732/1778] Compiling Vapor Session.swift
[1733/1778] Compiling Vapor SessionCache.swift
[1734/1778] Compiling Vapor SessionData.swift
[1735/1778] Compiling Vapor SessionDriver.swift
[1736/1778] Compiling Vapor ResponseCompressionMiddleware.swift
[1737/1778] Compiling Vapor RouteLoggingMiddleware.swift
[1738/1778] Compiling Vapor File+Multipart.swift
[1739/1778] Compiling Vapor FormDataDecoder+Content.swift
[1740/1778] Compiling Vapor FormDataEncoder+Content.swift
[1741/1778] Compiling Vapor Application+Password.swift
[1742/1778] Compiling Vapor Application+Passwords.swift
[1743/1778] Compiling Vapor AsyncPasswordHasher.swift
[1744/1778] Compiling Vapor BcryptHasher.swift
[1745/1778] Compiling Vapor PasswordHasher.swift
[1746/1778] Compiling Vapor PlaintextHasher.swift
[1747/1778] Compiling Vapor Request+Password.swift
[1748/1778] Compiling Vapor Redirect.swift
[1749/1778] Compiling Vapor Request+Body.swift
[1750/1778] Compiling Vapor Request+BodyStream.swift
[1751/1778] Compiling Vapor Request.swift
[1752/1778] Compiling Vapor Application+Responder.swift
[1753/1778] Compiling Vapor DefaultResponder.swift
[1754/1778] Compiling Vapor Response+Body.swift
[1755/1778] Compiling Vapor Response.swift
[1756/1778] Compiling Vapor ResponseCodable.swift
[1757/1778] Compiling Vapor JSONCoders+Content.swift
[1758/1778] Compiling Vapor PlaintextDecoder.swift
[1759/1778] Compiling Vapor PlaintextEncoder.swift
[1760/1778] Compiling Vapor URLQueryCoders.swift
[1761/1778] Compiling Vapor URLQueryContainer.swift
[1762/1778] Compiling Vapor Core.swift
[1763/1778] Compiling Vapor Running.swift
[1764/1778] Compiling Vapor CORSMiddleware+AllowOriginSetting.swift
[1765/1778] Compiling Vapor CORSMiddleware+Configuration+exposedHeaders.swift
[1766/1778] Compiling Vapor DotEnvFile+load.swift
[1767/1778] Compiling Vapor Routes+caseInsenstive.swift
[1768/1778] Compiling Vapor Validatable+validate.swift
[1769/1778] Compiling Vapor Environment+Process.swift
[1770/1778] Compiling Vapor Environment+Secret.swift
[1771/1778] Compiling Vapor Environment.swift
[1772/1778] Compiling Vapor Abort.swift
[1773/1778] Compiling Vapor AbortError.swift
[1774/1778] Compiling Vapor DebuggableError.swift
[1775/1778] Compiling Vapor Demangler.swift
[1776/1778] Compiling Vapor ErrorSource.swift
[1777/1778] Compiling Vapor StackTrace.swift
[1778/1778] Emitting module Vapor
[1779/1807] Compiling WS Nothing.swift
[1780/1807] Compiling WS OriginalRequest.swift
[1781/1807] Compiling WS WSID.swift
[1782/1810] Compiling WS ExchangeMode.swift
[1783/1810] Compiling WS Application+Configurator.swift
[1784/1810] Compiling WS HTTPServerConfiguration+Address.swift
[1785/1810] Compiling WS Request+Observer.swift
[1786/1810] Compiling WS Declarativable.swift
[1787/1810] Compiling WS Decoder.swift
[1788/1810] Compiling WS Delegate.swift
[1789/1810] Compiling WS ClassicObserver.swift
[1790/1810] Compiling WS DeclarativeObserver.swift
[1791/1810] Compiling WS AnyClient.swift
[1792/1810] 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 | }
[1793/1810] 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 | }
[1794/1810] 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 | }
[1795/1810] 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 | }
[1796/1810] 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 | }
[1797/1810] 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 | }
[1798/1810] Compiling WS Client.swift
[1799/1810] Compiling WS BaseObserver.swift
[1800/1810] Compiling WS BindableObserver.swift
[1801/1810] 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 | }
[1802/1810] 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 }
[1803/1810] 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 }
[1804/1810] 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 }
[1805/1810] 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/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 | }
[1806/1810] 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/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 | }
[1807/1810] 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/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 | }
[1808/1810] 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 | }
[1809/1810] 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 | }
[1810/1810] 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 | }
Build complete! (95.19s)
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.