The Swift Package Index logo.Swift Package Index

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

Build Information

Failed to build swift-nio, reference main (eeda80), with Swift 6.0 for macOS (SPM) on 20 Sep 2024 20:55:05 UTC.

Build Command

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

Build Log

 76 | /// have the capability to upgrade to multiple simultaneous layered protocols.
 77 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
 78 | public final class NIOTypedHTTPClientUpgradeHandler<UpgradeResult: Sendable>: ChannelDuplexHandler,
    |                    `- note: generic class 'NIOTypedHTTPClientUpgradeHandler' does not conform to the 'Sendable' protocol
 79 |     RemovableChannelHandler
 80 | {
    :
229 |             }.hop(to: context.eventLoop)
230 |             .whenComplete { result in
231 |                 self.upgradingHandlerCompleted(context: context, result)
    |                 `- warning: capture of 'self' with non-sendable type 'NIOTypedHTTPClientUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
232 |             }
233 |     }
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPClientUpgradeHandler.swift:231:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
229 |             }.hop(to: context.eventLoop)
230 |             .whenComplete { result in
231 |                 self.upgradingHandlerCompleted(context: context, result)
    |                                                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
232 |             }
233 |     }
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerPipelineHandler.swift:444:21: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
442 |                 self.lifecycleState = .quiescingCompleted
443 |                 context.write(data).flatMap {
444 |                     context.close()
    |                     `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
445 |                 }.cascade(to: promise)
446 |             case .acceptingEvents, .quiescingWaitingForRequestEnd:
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerPipelineHandler.swift:444:21: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
442 |                 self.lifecycleState = .quiescingCompleted
443 |                 context.write(data).flatMap {
444 |                     context.close()
    |                     `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
445 |                 }.cascade(to: promise)
446 |             case .acceptingEvents, .quiescingWaitingForRequestEnd:
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:186:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 |             .hop(to: context.eventLoop)  // the user might return a future from another EventLoop.
185 |             .whenSuccess { callback in
186 |                 context.eventLoop.assertInEventLoop()
    |                 `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 |                 if let callback = callback {
188 |                     self.gotUpgrader(upgrader: callback)
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:274:51: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
272 |                 // our final cleanup steps, namely we replay the received data we buffered in the meantime and
273 |                 // then remove ourselves from the pipeline.
274 |                 self.removeExtraHandlers(context: context).flatMap {
    |                                                   `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
275 |                     self.sendUpgradeResponse(
276 |                         context: context,
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:284:28: warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 29 | /// An object that implements `HTTPServerProtocolUpgrader` knows how to handle HTTP upgrade to
 30 | /// a protocol on a server-side channel.
 31 | public protocol HTTPServerProtocolUpgrader {
    |                 `- note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 32 |     /// The protocol this upgrader knows how to support.
 33 |     var supportedProtocol: String { get }
    :
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
284 |                     return upgrader.upgrade(context: context, upgradeRequest: request)
    |                            `- warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
285 |                 }.whenComplete { result in
286 |                     switch result {
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:274:51: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in an isolated closure; this is an error in the Swift 6 language mode
272 |                 // our final cleanup steps, namely we replay the received data we buffered in the meantime and
273 |                 // then remove ourselves from the pipeline.
274 |                 self.removeExtraHandlers(context: context).flatMap {
    |                                                   `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in an isolated closure; this is an error in the Swift 6 language mode
275 |                     self.sendUpgradeResponse(
276 |                         context: context,
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:284:28: warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in an isolated closure; this is an error in the Swift 6 language mode
 29 | /// An object that implements `HTTPServerProtocolUpgrader` knows how to handle HTTP upgrade to
 30 | /// a protocol on a server-side channel.
 31 | public protocol HTTPServerProtocolUpgrader {
    |                 `- note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 32 |     /// The protocol this upgrader knows how to support.
 33 |     var supportedProtocol: String { get }
    :
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
284 |                     return upgrader.upgrade(context: context, upgradeRequest: request)
    |                            `- warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in an isolated closure; this is an error in the Swift 6 language mode
285 |                 }.whenComplete { result in
286 |                     switch result {
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:276:34: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
274 |                 self.removeExtraHandlers(context: context).flatMap {
275 |                     self.sendUpgradeResponse(
276 |                         context: context,
    |                                  `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
277 |                         upgradeRequest: request,
278 |                         responseHeaders: finalResponseHeaders
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:281:21: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
279 |                     )
280 |                 }.flatMap {
281 |                     context.pipeline.syncOperations.removeHandler(self.httpEncoder)
    |                     `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:283:51: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
281 |                     context.pipeline.syncOperations.removeHandler(self.httpEncoder)
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
    |                                                   `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
284 |                     return upgrader.upgrade(context: context, upgradeRequest: request)
285 |                 }.whenComplete { result in
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:284:28: warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 29 | /// An object that implements `HTTPServerProtocolUpgrader` knows how to handle HTTP upgrade to
 30 | /// a protocol on a server-side channel.
 31 | public protocol HTTPServerProtocolUpgrader {
    |                 `- note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 32 |     /// The protocol this upgrader knows how to support.
 33 |     var supportedProtocol: String { get }
    :
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
284 |                     return upgrader.upgrade(context: context, upgradeRequest: request)
    |                            `- warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
285 |                 }.whenComplete { result in
286 |                     switch result {
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:288:25: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
286 |                     switch result {
287 |                     case .success:
288 |                         context.fireUserInboundEventTriggered(
    |                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
289 |                             HTTPServerUpgradeEvents.upgradeComplete(toProtocol: proto, upgradeRequest: request)
290 |                         )
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:303:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
301 |         }.flatMapError { error in
302 |             // No upgrade here. We want to fire the error down the pipeline, and then try another loop iteration.
303 |             context.fireErrorCaught(error)
    |             `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
304 |             return self.handleUpgradeForProtocol(
305 |                 context: context,
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:306:35: warning: reference to captured var 'protocolIterator' in concurrently-executing code; this is an error in the Swift 6 language mode
304 |             return self.handleUpgradeForProtocol(
305 |                 context: context,
306 |                 protocolIterator: protocolIterator,
    |                                   `- warning: reference to captured var 'protocolIterator' in concurrently-executing code; this is an error in the Swift 6 language mode
307 |                 request: request,
308 |                 allHeaderNames: allHeaderNames,
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPTypedPipelineSetup.swift:85:36: warning: capture of 'configuration' with non-sendable type 'NIOUpgradableHTTPServerPipelineConfiguration<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 | /// Configuration for an upgradable HTTP pipeline.
 20 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
 21 | public struct NIOUpgradableHTTPServerPipelineConfiguration<UpgradeResult: Sendable> {
    |               `- note: consider making generic struct 'NIOUpgradableHTTPServerPipelineConfiguration' conform to the 'Sendable' protocol
 22 |     /// Whether to provide assistance handling HTTP clients that pipeline
 23 |     /// their requests. Defaults to `true`. If `false`, users will need to handle clients that pipeline themselves.
    :
 83 |             future = self.eventLoop.submit {
 84 |                 try self.syncOperations.configureUpgradableHTTPServerPipeline(
 85 |                     configuration: configuration
    |                                    `- warning: capture of 'configuration' with non-sendable type 'NIOUpgradableHTTPServerPipelineConfiguration<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 86 |                 )
 87 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPTypedPipelineSetup.swift:204:36: warning: capture of 'configuration' with non-sendable type 'NIOUpgradableHTTPClientPipelineConfiguration<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | /// Configuration for an upgradable HTTP pipeline.
148 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
149 | public struct NIOUpgradableHTTPClientPipelineConfiguration<UpgradeResult: Sendable> {
    |               `- note: consider making generic struct 'NIOUpgradableHTTPClientPipelineConfiguration' conform to the 'Sendable' protocol
150 |     /// The strategy to use when dealing with leftover bytes after removing the ``HTTPDecoder`` from the pipeline.
151 |     public var leftOverBytesStrategy = RemoveAfterUpgradeStrategy.dropBytes
    :
202 |             future = self.eventLoop.submit {
203 |                 try self.syncOperations.configureUpgradableHTTPClientPipeline(
204 |                     configuration: configuration
    |                                    `- warning: capture of 'configuration' with non-sendable type 'NIOUpgradableHTTPClientPipelineConfiguration<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
205 |                 )
206 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:186:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
184 |             .hop(to: context.eventLoop)  // the user might return a future from another EventLoop.
185 |             .whenSuccess { callback in
186 |                 context.eventLoop.assertInEventLoop()
    |                 `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 |                 if let callback = callback {
188 |                     self.gotUpgrader(upgrader: callback)
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:274:51: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
272 |                 // our final cleanup steps, namely we replay the received data we buffered in the meantime and
273 |                 // then remove ourselves from the pipeline.
274 |                 self.removeExtraHandlers(context: context).flatMap {
    |                                                   `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
275 |                     self.sendUpgradeResponse(
276 |                         context: context,
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:284:28: warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 29 | /// An object that implements `HTTPServerProtocolUpgrader` knows how to handle HTTP upgrade to
 30 | /// a protocol on a server-side channel.
 31 | public protocol HTTPServerProtocolUpgrader {
    |                 `- note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 32 |     /// The protocol this upgrader knows how to support.
 33 |     var supportedProtocol: String { get }
    :
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
284 |                     return upgrader.upgrade(context: context, upgradeRequest: request)
    |                            `- warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
285 |                 }.whenComplete { result in
286 |                     switch result {
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:274:51: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in an isolated closure; this is an error in the Swift 6 language mode
272 |                 // our final cleanup steps, namely we replay the received data we buffered in the meantime and
273 |                 // then remove ourselves from the pipeline.
274 |                 self.removeExtraHandlers(context: context).flatMap {
    |                                                   `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in an isolated closure; this is an error in the Swift 6 language mode
275 |                     self.sendUpgradeResponse(
276 |                         context: context,
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:284:28: warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in an isolated closure; this is an error in the Swift 6 language mode
 29 | /// An object that implements `HTTPServerProtocolUpgrader` knows how to handle HTTP upgrade to
 30 | /// a protocol on a server-side channel.
 31 | public protocol HTTPServerProtocolUpgrader {
    |                 `- note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 32 |     /// The protocol this upgrader knows how to support.
 33 |     var supportedProtocol: String { get }
    :
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
284 |                     return upgrader.upgrade(context: context, upgradeRequest: request)
    |                            `- warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in an isolated closure; this is an error in the Swift 6 language mode
285 |                 }.whenComplete { result in
286 |                     switch result {
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:276:34: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
274 |                 self.removeExtraHandlers(context: context).flatMap {
275 |                     self.sendUpgradeResponse(
276 |                         context: context,
    |                                  `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
277 |                         upgradeRequest: request,
278 |                         responseHeaders: finalResponseHeaders
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:281:21: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
279 |                     )
280 |                 }.flatMap {
281 |                     context.pipeline.syncOperations.removeHandler(self.httpEncoder)
    |                     `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:283:51: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
281 |                     context.pipeline.syncOperations.removeHandler(self.httpEncoder)
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
    |                                                   `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
284 |                     return upgrader.upgrade(context: context, upgradeRequest: request)
285 |                 }.whenComplete { result in
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:284:28: warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 29 | /// An object that implements `HTTPServerProtocolUpgrader` knows how to handle HTTP upgrade to
 30 | /// a protocol on a server-side channel.
 31 | public protocol HTTPServerProtocolUpgrader {
    |                 `- note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 32 |     /// The protocol this upgrader knows how to support.
 33 |     var supportedProtocol: String { get }
    :
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
284 |                     return upgrader.upgrade(context: context, upgradeRequest: request)
    |                            `- warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
285 |                 }.whenComplete { result in
286 |                     switch result {
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:288:25: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
286 |                     switch result {
287 |                     case .success:
288 |                         context.fireUserInboundEventTriggered(
    |                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
289 |                             HTTPServerUpgradeEvents.upgradeComplete(toProtocol: proto, upgradeRequest: request)
290 |                         )
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:303:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
301 |         }.flatMapError { error in
302 |             // No upgrade here. We want to fire the error down the pipeline, and then try another loop iteration.
303 |             context.fireErrorCaught(error)
    |             `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
304 |             return self.handleUpgradeForProtocol(
305 |                 context: context,
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:306:35: warning: reference to captured var 'protocolIterator' in concurrently-executing code; this is an error in the Swift 6 language mode
304 |             return self.handleUpgradeForProtocol(
305 |                 context: context,
306 |                 protocolIterator: protocolIterator,
    |                                   `- warning: reference to captured var 'protocolIterator' in concurrently-executing code; this is an error in the Swift 6 language mode
307 |                 request: request,
308 |                 allHeaderNames: allHeaderNames,
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPTypedPipelineSetup.swift:85:36: warning: capture of 'configuration' with non-sendable type 'NIOUpgradableHTTPServerPipelineConfiguration<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 19 | /// Configuration for an upgradable HTTP pipeline.
 20 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
 21 | public struct NIOUpgradableHTTPServerPipelineConfiguration<UpgradeResult: Sendable> {
    |               `- note: consider making generic struct 'NIOUpgradableHTTPServerPipelineConfiguration' conform to the 'Sendable' protocol
 22 |     /// Whether to provide assistance handling HTTP clients that pipeline
 23 |     /// their requests. Defaults to `true`. If `false`, users will need to handle clients that pipeline themselves.
    :
 83 |             future = self.eventLoop.submit {
 84 |                 try self.syncOperations.configureUpgradableHTTPServerPipeline(
 85 |                     configuration: configuration
    |                                    `- warning: capture of 'configuration' with non-sendable type 'NIOUpgradableHTTPServerPipelineConfiguration<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 86 |                 )
 87 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPTypedPipelineSetup.swift:204:36: warning: capture of 'configuration' with non-sendable type 'NIOUpgradableHTTPClientPipelineConfiguration<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 | /// Configuration for an upgradable HTTP pipeline.
148 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
149 | public struct NIOUpgradableHTTPClientPipelineConfiguration<UpgradeResult: Sendable> {
    |               `- note: consider making generic struct 'NIOUpgradableHTTPClientPipelineConfiguration' conform to the 'Sendable' protocol
150 |     /// The strategy to use when dealing with leftover bytes after removing the ``HTTPDecoder`` from the pipeline.
151 |     public var leftOverBytesStrategy = RemoveAfterUpgradeStrategy.dropBytes
    :
202 |             future = self.eventLoop.submit {
203 |                 try self.syncOperations.configureUpgradableHTTPClientPipeline(
204 |                     configuration: configuration
    |                                    `- warning: capture of 'configuration' with non-sendable type 'NIOUpgradableHTTPClientPipelineConfiguration<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
205 |                 )
206 |             }
[390/425] Emitting module NIOHTTP1
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:274:51: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
272 |                 // our final cleanup steps, namely we replay the received data we buffered in the meantime and
273 |                 // then remove ourselves from the pipeline.
274 |                 self.removeExtraHandlers(context: context).flatMap {
    |                                                   `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
275 |                     self.sendUpgradeResponse(
276 |                         context: context,
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:284:28: warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 29 | /// An object that implements `HTTPServerProtocolUpgrader` knows how to handle HTTP upgrade to
 30 | /// a protocol on a server-side channel.
 31 | public protocol HTTPServerProtocolUpgrader {
    |                 `- note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 32 |     /// The protocol this upgrader knows how to support.
 33 |     var supportedProtocol: String { get }
    :
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
284 |                     return upgrader.upgrade(context: context, upgradeRequest: request)
    |                            `- warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
285 |                 }.whenComplete { result in
286 |                     switch result {
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:274:51: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in an isolated closure; this is an error in the Swift 6 language mode
272 |                 // our final cleanup steps, namely we replay the received data we buffered in the meantime and
273 |                 // then remove ourselves from the pipeline.
274 |                 self.removeExtraHandlers(context: context).flatMap {
    |                                                   `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in an isolated closure; this is an error in the Swift 6 language mode
275 |                     self.sendUpgradeResponse(
276 |                         context: context,
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:284:28: warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in an isolated closure; this is an error in the Swift 6 language mode
 29 | /// An object that implements `HTTPServerProtocolUpgrader` knows how to handle HTTP upgrade to
 30 | /// a protocol on a server-side channel.
 31 | public protocol HTTPServerProtocolUpgrader {
    |                 `- note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 32 |     /// The protocol this upgrader knows how to support.
 33 |     var supportedProtocol: String { get }
    :
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
284 |                     return upgrader.upgrade(context: context, upgradeRequest: request)
    |                            `- warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in an isolated closure; this is an error in the Swift 6 language mode
285 |                 }.whenComplete { result in
286 |                     switch result {
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:276:34: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
274 |                 self.removeExtraHandlers(context: context).flatMap {
275 |                     self.sendUpgradeResponse(
276 |                         context: context,
    |                                  `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
277 |                         upgradeRequest: request,
278 |                         responseHeaders: finalResponseHeaders
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:281:21: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
279 |                     )
280 |                 }.flatMap {
281 |                     context.pipeline.syncOperations.removeHandler(self.httpEncoder)
    |                     `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:283:51: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
281 |                     context.pipeline.syncOperations.removeHandler(self.httpEncoder)
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
    |                                                   `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
284 |                     return upgrader.upgrade(context: context, upgradeRequest: request)
285 |                 }.whenComplete { result in
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:284:28: warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 29 | /// An object that implements `HTTPServerProtocolUpgrader` knows how to handle HTTP upgrade to
 30 | /// a protocol on a server-side channel.
 31 | public protocol HTTPServerProtocolUpgrader {
    |                 `- note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 32 |     /// The protocol this upgrader knows how to support.
 33 |     var supportedProtocol: String { get }
    :
282 |                 }.flatMap { () -> EventLoopFuture<Void> in
283 |                     self.upgradeCompletionHandler(context)
284 |                     return upgrader.upgrade(context: context, upgradeRequest: request)
    |                            `- warning: capture of 'upgrader' with non-sendable type 'any HTTPServerProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
285 |                 }.whenComplete { result in
286 |                     switch result {
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:288:25: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
286 |                     switch result {
287 |                     case .success:
288 |                         context.fireUserInboundEventTriggered(
    |                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
289 |                             HTTPServerUpgradeEvents.upgradeComplete(toProtocol: proto, upgradeRequest: request)
290 |                         )
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:303:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
301 |         }.flatMapError { error in
302 |             // No upgrade here. We want to fire the error down the pipeline, and then try another loop iteration.
303 |             context.fireErrorCaught(error)
    |             `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
304 |             return self.handleUpgradeForProtocol(
305 |                 context: context,
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:306:35: warning: reference to captured var 'protocolIterator' in concurrently-executing code; this is an error in the Swift 6 language mode
304 |             return self.handleUpgradeForProtocol(
305 |                 context: context,
306 |                 protocolIterator: protocolIterator,
    |                                   `- warning: reference to captured var 'protocolIterator' in concurrently-executing code; this is an error in the Swift 6 language mode
307 |                 request: request,
308 |                 allHeaderNames: allHeaderNames,
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:288:17: warning: capture of 'upgrader' with non-sendable type 'any NIOTypedHTTPServerProtocolUpgrader<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 17 | /// An object that implements `NIOTypedHTTPServerProtocolUpgrader` knows how to handle HTTP upgrade to
 18 | /// a protocol on a server-side channel.
 19 | public protocol NIOTypedHTTPServerProtocolUpgrader<UpgradeResult> {
    |                 `- note: protocol 'NIOTypedHTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 20 |     associatedtype UpgradeResult: Sendable
 21 |
    :
286 |         )
287 |         .hop(to: context.eventLoop)
288 |         .map { (upgrader, $0, proto) }
    |                 `- warning: capture of 'upgrader' with non-sendable type 'any NIOTypedHTTPServerProtocolUpgrader<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
289 |         .flatMapError { error in
290 |             // No upgrade here. We want to fire the error down the pipeline, and then try another loop iteration.
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:291:13: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
289 |         .flatMapError { error in
290 |             // No upgrade here. We want to fire the error down the pipeline, and then try another loop iteration.
291 |             context.fireErrorCaught(error)
    |             `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
292 |             return self.handleUpgradeForProtocol(
293 |                 context: context,
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:292:20: warning: capture of 'self' with non-sendable type 'NIOTypedHTTPServerUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 76 | /// the odds of someone needing to upgrade midway through the lifetime of a connection are very low.
 77 | @available(macOS 13, iOS 16, tvOS 16, watchOS 9, *)
 78 | public final class NIOTypedHTTPServerUpgradeHandler<UpgradeResult: Sendable>: ChannelInboundHandler,
    |                    `- note: generic class 'NIOTypedHTTPServerUpgradeHandler' does not conform to the 'Sendable' protocol
 79 |     RemovableChannelHandler
 80 | {
    :
290 |             // No upgrade here. We want to fire the error down the pipeline, and then try another loop iteration.
291 |             context.fireErrorCaught(error)
292 |             return self.handleUpgradeForProtocol(
    |                    `- warning: capture of 'self' with non-sendable type 'NIOTypedHTTPServerUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
293 |                 context: context,
294 |                 protocolIterator: protocolIterator,
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPServerUpgradeHandler.swift:294:35: warning: reference to captured var 'protocolIterator' in concurrently-executing code; this is an error in the Swift 6 language mode
292 |             return self.handleUpgradeForProtocol(
293 |                 context: context,
294 |                 protocolIterator: protocolIterator,
    |                                   `- warning: reference to captured var 'protocolIterator' in concurrently-executing code; this is an error in the Swift 6 language mode
295 |                 request: request,
296 |                 allHeaderNames: allHeaderNames,
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:98:31: warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 96 |             future = self.eventLoop.submit {
 97 |                 try self.syncOperations.addHTTPClientHandlers(
 98 |                     position: position,
    |                               `- warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 99 |                     leftOverBytesStrategy: leftOverBytesStrategy,
100 |                     withClientUpgrade: upgrade
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1359:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1357 | extension ChannelPipeline {
1358 |     /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1359 |     public enum Position {
     |                 `- note: enum 'Position' does not conform to the 'Sendable' protocol
1360 |         /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1361 |         case first
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:100:40: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 98 |                     position: position,
 99 |                     leftOverBytesStrategy: leftOverBytesStrategy,
100 |                     withClientUpgrade: upgrade
    |                                        `- warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
101 |                 )
102 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:62:17: note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 60 | /// a protocol on a client-side channel.
 61 | /// It has the option of denying this upgrade based upon the server response.
 62 | public protocol NIOHTTPClientProtocolUpgrader {
    |                 `- note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 63 |
 64 |     /// The protocol this upgrader knows how to support.
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:142:31: warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 |             future = self.eventLoop.submit {
141 |                 try self.syncOperations.addHTTPClientHandlers(
142 |                     position: position,
    |                               `- warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 |                     leftOverBytesStrategy: leftOverBytesStrategy,
144 |                     enableOutboundHeaderValidation: enableOutboundHeaderValidation,
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1359:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1357 | extension ChannelPipeline {
1358 |     /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1359 |     public enum Position {
     |                 `- note: enum 'Position' does not conform to the 'Sendable' protocol
1360 |         /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1361 |         case first
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:145:40: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 |                     leftOverBytesStrategy: leftOverBytesStrategy,
144 |                     enableOutboundHeaderValidation: enableOutboundHeaderValidation,
145 |                     withClientUpgrade: upgrade
    |                                        `- warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 |                 )
147 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:62:17: note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 60 | /// a protocol on a client-side channel.
 61 | /// It has the option of denying this upgrade based upon the server response.
 62 | public protocol NIOHTTPClientProtocolUpgrader {
    |                 `- note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 63 |
 64 |     /// The protocol this upgrader knows how to support.
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:190:31: warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
188 |             future = self.eventLoop.submit {
189 |                 try self.syncOperations.addHTTPClientHandlers(
190 |                     position: position,
    |                               `- warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
191 |                     leftOverBytesStrategy: leftOverBytesStrategy,
192 |                     enableOutboundHeaderValidation: enableOutboundHeaderValidation,
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1359:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1357 | extension ChannelPipeline {
1358 |     /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1359 |     public enum Position {
     |                 `- note: enum 'Position' does not conform to the 'Sendable' protocol
1360 |         /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1361 |         case first
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:194:40: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
192 |                     enableOutboundHeaderValidation: enableOutboundHeaderValidation,
193 |                     encoderConfiguration: encoderConfiguration,
194 |                     withClientUpgrade: upgrade
    |                                        `- warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
195 |                 )
196 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:62:17: note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 60 | /// a protocol on a client-side channel.
 61 | /// It has the option of denying this upgrade based upon the server response.
 62 | public protocol NIOHTTPClientProtocolUpgrader {
    |                 `- note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 63 |
 64 |     /// The protocol this upgrader knows how to support.
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:360:31: warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
358 |             future = self.eventLoop.submit {
359 |                 try self.syncOperations.configureHTTPServerPipeline(
360 |                     position: position,
    |                               `- warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
361 |                     withPipeliningAssistance: pipelining,
362 |                     withServerUpgrade: upgrade,
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1359:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1357 | extension ChannelPipeline {
1358 |     /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1359 |     public enum Position {
     |                 `- note: enum 'Position' does not conform to the 'Sendable' protocol
1360 |         /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1361 |         case first
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:362:40: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPServerUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any HTTPServerProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
360 |                     position: position,
361 |                     withPipeliningAssistance: pipelining,
362 |                     withServerUpgrade: upgrade,
    |                                        `- warning: capture of 'upgrade' with non-sendable type 'NIOHTTPServerUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any HTTPServerProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
363 |                     withErrorHandling: errorHandling,
364 |                     withOutboundHeaderValidation: headerValidation,
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:31:17: note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 29 | /// An object that implements `HTTPServerProtocolUpgrader` knows how to handle HTTP upgrade to
 30 | /// a protocol on a server-side channel.
 31 | public protocol HTTPServerProtocolUpgrader {
    |                 `- note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 32 |     /// The protocol this upgrader knows how to support.
 33 |     var supportedProtocol: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:98:31: warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 96 |             future = self.eventLoop.submit {
 97 |                 try self.syncOperations.addHTTPClientHandlers(
 98 |                     position: position,
    |                               `- warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 99 |                     leftOverBytesStrategy: leftOverBytesStrategy,
100 |                     withClientUpgrade: upgrade
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1359:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1357 | extension ChannelPipeline {
1358 |     /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1359 |     public enum Position {
     |                 `- note: enum 'Position' does not conform to the 'Sendable' protocol
1360 |         /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1361 |         case first
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:100:40: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
 98 |                     position: position,
 99 |                     leftOverBytesStrategy: leftOverBytesStrategy,
100 |                     withClientUpgrade: upgrade
    |                                        `- warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
101 |                 )
102 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:62:17: note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 60 | /// a protocol on a client-side channel.
 61 | /// It has the option of denying this upgrade based upon the server response.
 62 | public protocol NIOHTTPClientProtocolUpgrader {
    |                 `- note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 63 |
 64 |     /// The protocol this upgrader knows how to support.
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:142:31: warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 |             future = self.eventLoop.submit {
141 |                 try self.syncOperations.addHTTPClientHandlers(
142 |                     position: position,
    |                               `- warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 |                     leftOverBytesStrategy: leftOverBytesStrategy,
144 |                     enableOutboundHeaderValidation: enableOutboundHeaderValidation,
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1359:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1357 | extension ChannelPipeline {
1358 |     /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1359 |     public enum Position {
     |                 `- note: enum 'Position' does not conform to the 'Sendable' protocol
1360 |         /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1361 |         case first
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:145:40: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
143 |                     leftOverBytesStrategy: leftOverBytesStrategy,
144 |                     enableOutboundHeaderValidation: enableOutboundHeaderValidation,
145 |                     withClientUpgrade: upgrade
    |                                        `- warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
146 |                 )
147 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:62:17: note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 60 | /// a protocol on a client-side channel.
 61 | /// It has the option of denying this upgrade based upon the server response.
 62 | public protocol NIOHTTPClientProtocolUpgrader {
    |                 `- note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 63 |
 64 |     /// The protocol this upgrader knows how to support.
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:190:31: warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
188 |             future = self.eventLoop.submit {
189 |                 try self.syncOperations.addHTTPClientHandlers(
190 |                     position: position,
    |                               `- warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
191 |                     leftOverBytesStrategy: leftOverBytesStrategy,
192 |                     enableOutboundHeaderValidation: enableOutboundHeaderValidation,
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1359:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1357 | extension ChannelPipeline {
1358 |     /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1359 |     public enum Position {
     |                 `- note: enum 'Position' does not conform to the 'Sendable' protocol
1360 |         /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1361 |         case first
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:194:40: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
192 |                     enableOutboundHeaderValidation: enableOutboundHeaderValidation,
193 |                     encoderConfiguration: encoderConfiguration,
194 |                     withClientUpgrade: upgrade
    |                                        `- warning: capture of 'upgrade' with non-sendable type 'NIOHTTPClientUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any NIOHTTPClientProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
195 |                 )
196 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:62:17: note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 60 | /// a protocol on a client-side channel.
 61 | /// It has the option of denying this upgrade based upon the server response.
 62 | public protocol NIOHTTPClientProtocolUpgrader {
    |                 `- note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 63 |
 64 |     /// The protocol this upgrader knows how to support.
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:360:31: warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
358 |             future = self.eventLoop.submit {
359 |                 try self.syncOperations.configureHTTPServerPipeline(
360 |                     position: position,
    |                               `- warning: capture of 'position' with non-sendable type 'ChannelPipeline.Position' in a `@Sendable` closure; this is an error in the Swift 6 language mode
361 |                     withPipeliningAssistance: pipelining,
362 |                     withServerUpgrade: upgrade,
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1359:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1357 | extension ChannelPipeline {
1358 |     /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1359 |     public enum Position {
     |                 `- note: enum 'Position' does not conform to the 'Sendable' protocol
1360 |         /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1361 |         case first
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPPipelineSetup.swift:362:40: warning: capture of 'upgrade' with non-sendable type 'NIOHTTPServerUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any HTTPServerProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
360 |                     position: position,
361 |                     withPipeliningAssistance: pipelining,
362 |                     withServerUpgrade: upgrade,
    |                                        `- warning: capture of 'upgrade' with non-sendable type 'NIOHTTPServerUpgradeConfiguration?' (aka 'Optional<(upgraders: Array<any HTTPServerProtocolUpgrader>, completionHandler: @Sendable (ChannelHandlerContext) -> ())>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
363 |                     withErrorHandling: errorHandling,
364 |                     withOutboundHeaderValidation: headerValidation,
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPServerUpgradeHandler.swift:31:17: note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 29 | /// An object that implements `HTTPServerProtocolUpgrader` knows how to handle HTTP upgrade to
 30 | /// a protocol on a server-side channel.
 31 | public protocol HTTPServerProtocolUpgrader {
    |                 `- note: protocol 'HTTPServerProtocolUpgrader' does not conform to the 'Sendable' protocol
 32 |     /// The protocol this upgrader knows how to support.
 33 |     var supportedProtocol: String { get }
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:334:51: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
332 |                 .map {
333 |                     // Let the other handlers be removed before continuing with upgrade.
334 |                     self.upgradeCompletionHandler(context)
    |                                                   `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
335 |                     self.upgradeState = .upgradingAddingHandlers
336 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:338:21: warning: capture of 'upgrader' with non-sendable type 'any NIOHTTPClientProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 60 | /// a protocol on a client-side channel.
 61 | /// It has the option of denying this upgrade based upon the server response.
 62 | public protocol NIOHTTPClientProtocolUpgrader {
    |                 `- note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 63 |
 64 |     /// The protocol this upgrader knows how to support.
    :
336 |                 }
337 |                 .flatMap {
338 |                     upgrader.upgrade(context: context, upgradeResponse: response)
    |                     `- warning: capture of 'upgrader' with non-sendable type 'any NIOHTTPClientProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
339 |                 }
340 |                 .map {
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:338:47: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
336 |                 }
337 |                 .flatMap {
338 |                     upgrader.upgrade(context: context, upgradeResponse: response)
    |                                               `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
339 |                 }
340 |                 .map {
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:347:25: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
345 |                     while self.receivedMessages.count > 0 {
346 |                         let bufferedPart = self.receivedMessages.removeFirst()
347 |                         context.fireChannelRead(bufferedPart)
    |                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 |                     }
349 |                     if fireReadComplete {
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:359:21: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 |                 }
358 |                 .whenComplete { _ in
359 |                     context.pipeline.removeHandler(context: context, promise: nil)
    |                     `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
360 |                 }
361 |         }
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:334:51: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
332 |                 .map {
333 |                     // Let the other handlers be removed before continuing with upgrade.
334 |                     self.upgradeCompletionHandler(context)
    |                                                   `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
335 |                     self.upgradeState = .upgradingAddingHandlers
336 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:338:21: warning: capture of 'upgrader' with non-sendable type 'any NIOHTTPClientProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 60 | /// a protocol on a client-side channel.
 61 | /// It has the option of denying this upgrade based upon the server response.
 62 | public protocol NIOHTTPClientProtocolUpgrader {
    |                 `- note: protocol 'NIOHTTPClientProtocolUpgrader' does not conform to the 'Sendable' protocol
 63 |
 64 |     /// The protocol this upgrader knows how to support.
    :
336 |                 }
337 |                 .flatMap {
338 |                     upgrader.upgrade(context: context, upgradeResponse: response)
    |                     `- warning: capture of 'upgrader' with non-sendable type 'any NIOHTTPClientProtocolUpgrader' in a `@Sendable` closure; this is an error in the Swift 6 language mode
339 |                 }
340 |                 .map {
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:338:47: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
336 |                 }
337 |                 .flatMap {
338 |                     upgrader.upgrade(context: context, upgradeResponse: response)
    |                                               `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
339 |                 }
340 |                 .map {
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:347:25: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
345 |                     while self.receivedMessages.count > 0 {
346 |                         let bufferedPart = self.receivedMessages.removeFirst()
347 |                         context.fireChannelRead(bufferedPart)
    |                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
348 |                     }
349 |                     if fireReadComplete {
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOHTTPClientUpgradeHandler.swift:359:21: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
357 |                 }
358 |                 .whenComplete { _ in
359 |                     context.pipeline.removeHandler(context: context, promise: nil)
    |                     `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
360 |                 }
361 |         }
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
[399/425] Emitting module NIOFileSystem
[400/425] Compiling NIOFileSystem Exports.swift
[401/428] Emitting module _NIOFileSystemFoundationCompat
[402/428] Compiling _NIOFileSystemFoundationCompat Date+FileInfo.swift
[403/447] Compiling NIOWebSocket WebSocketOpcode.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOWebSocket/WebSocketOpcode.swift:60:23: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 58 |
 59 | extension WebSocketOpcode: CaseIterable {
 60 |     public static var allCases = (0..<0x10).map { WebSocketOpcode(rawValue: $0) }
    |                       |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 61 | }
 62 |
[404/448] Emitting module NIOHTTP1Client
[405/448] Compiling NIOHTTP1Client main.swift
[406/448] Compiling NIOAsyncAwaitDemo main.swift
[407/448] Compiling NIOAsyncAwaitDemo AsyncChannelIO.swift
[408/448] Compiling NIOAsyncAwaitDemo FullRequestResponse.swift
[409/448] Emitting module NIOAsyncAwaitDemo
[409/448] Write Objects.LinkFileList
[412/448] Compiling NIOWebSocket WebSocketFrameEncoder.swift
[413/448] Compiling NIOWebSocket WebSocketProtocolErrorHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOWebSocket/WebSocketProtocolErrorHandler.swift:37:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
35 |             )
36 |             context.writeAndFlush(Self.wrapOutboundOut(frame)).whenComplete { (_: Result<Void, Error>) in
37 |                 context.close(promise: nil)
   |                 `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
38 |             }
39 |         }
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
[414/448] Compiling NIOWebSocket WebSocketFrameDecoder.swift
[415/448] Compiling NIOWebSocket NIOWebSocketServerUpgrader.swift
[416/448] Compiling NIOWebSocket NIOWebSocketClientUpgrader.swift
[417/448] Compiling NIOWebSocket SHA1.swift
[418/448] Compiling NIOWebSocket NIOWebSocketFrameAggregator.swift
[419/448] Compiling NIOWebSocket WebSocketErrorCodes.swift
[420/448] Compiling NIOWebSocket WebSocketFrame.swift
[421/448] Emitting module NIOWebSocket
/Users/admin/builder/spi-builder-workspace/Sources/NIOWebSocket/WebSocketOpcode.swift:60:23: warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 58 |
 59 | extension WebSocketOpcode: CaseIterable {
 60 |     public static var allCases = (0..<0x10).map { WebSocketOpcode(rawValue: $0) }
    |                       |- warning: static property 'allCases' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: convert 'allCases' to a 'let' constant to make 'Sendable' shared state immutable
    |                       |- note: annotate 'allCases' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 61 | }
 62 |
[422/448] Compiling NIOTestUtils ByteToMessageDecoderVerifier.swift
[423/448] Compiling NIOTestUtils EventCounterHandler.swift
[424/448] Emitting module NIOTestUtils
[425/448] Compiling NIOTestUtils NIOHTTP1TestServer.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOTestUtils/NIOHTTP1TestServer.swift:86:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 84 |         case .end:
 85 |             context.write(data).map {
 86 |                 context.close(promise: nil)
    |                 `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 87 |             }.cascade(to: promise)
 88 |         }
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOTestUtils/NIOHTTP1TestServer.swift:310:46: warning: capture of 'data' with non-sendable type 'HTTPServerResponsePart' (aka 'HTTPPart<HTTPResponseHead, IOData>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
308 |         try self.eventLoop.flatSubmit { () -> EventLoopFuture<Void> in
309 |             if let channel = self.currentClientChannel {
310 |                 return channel.writeAndFlush(data)
    |                                              `- warning: capture of 'data' with non-sendable type 'HTTPServerResponsePart' (aka 'HTTPPart<HTTPResponseHead, IOData>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
311 |             } else {
312 |                 return self.eventLoop.makeFailedFuture(ChannelError.ioOnClosedChannel)
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/HTTPTypes.swift:137:13: note: generic enum 'HTTPPart' does not conform to the 'Sendable' protocol
 135 | /// To indicate that a complete HTTP message has been sent or received,
 136 | /// an ``HTTPPart/end(_:)`` part must be used, even when no trailers are included.
 137 | public enum HTTPPart<HeadT: Equatable, BodyT: Equatable> {
     |             `- note: generic enum 'HTTPPart' does not conform to the 'Sendable' protocol
 138 |     /// The headers of an HTTP request or response.
 139 |     ///
[426/485] Emitting module NIOHTTP1Server
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:611:30: warning: converting non-sendable function value to '@Sendable (any Channel) -> EventLoopFuture<Void>' may introduce data races
609 |
610 |     // Set the handlers that are applied to the accepted Channels
611 |     .childChannelInitializer(childChannelInitializer(channel:))
    |                              `- warning: converting non-sendable function value to '@Sendable (any Channel) -> EventLoopFuture<Void>' may introduce data races
612 |
613 |     // Enable SO_REUSEADDR for the accepted Channels
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:619:25: warning: converting non-sendable function value to '@Sendable (any Channel) -> EventLoopFuture<Void>' may introduce data races
617 | let pipeBootstrap = NIOPipeBootstrap(group: MultiThreadedEventLoopGroup.singleton)
618 |     // Set the handlers that are applied to the accepted Channels
619 |     .channelInitializer(childChannelInitializer(channel:))
    |                         `- warning: converting non-sendable function value to '@Sendable (any Channel) -> EventLoopFuture<Void>' may introduce data races
620 |
621 |     .channelOption(.maxMessagesPerRead, value: 1)
[427/485] Compiling NIOHTTP1Server main.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:611:30: warning: converting non-sendable function value to '@Sendable (any Channel) -> EventLoopFuture<Void>' may introduce data races
609 |
610 |     // Set the handlers that are applied to the accepted Channels
611 |     .childChannelInitializer(childChannelInitializer(channel:))
    |                              `- warning: converting non-sendable function value to '@Sendable (any Channel) -> EventLoopFuture<Void>' may introduce data races
612 |
613 |     // Enable SO_REUSEADDR for the accepted Channels
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:619:25: warning: converting non-sendable function value to '@Sendable (any Channel) -> EventLoopFuture<Void>' may introduce data races
617 | let pipeBootstrap = NIOPipeBootstrap(group: MultiThreadedEventLoopGroup.singleton)
618 |     // Set the handlers that are applied to the accepted Channels
619 |     .channelInitializer(childChannelInitializer(channel:))
    |                         `- warning: converting non-sendable function value to '@Sendable (any Channel) -> EventLoopFuture<Void>' may introduce data races
620 |
621 |     .channelOption(.maxMessagesPerRead, value: 1)
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:210:27: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
208 |             self.state.requestComplete()
209 |             context.eventLoop.scheduleTask(in: delay) { () -> Void in
210 |                 var buf = context.channel.allocator.buffer(capacity: string.utf8.count)
    |                           `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
211 |                 buf.writeString(string)
212 |                 context.writeAndFlush(Self.wrapOutboundOut(.body(.byteBuffer(buf))), promise: nil)
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:219:17: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 61 | }
 62 |
 63 | private final class HTTPHandler: ChannelInboundHandler {
    |                     `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 64 |     private enum FileIOMethod {
 65 |         case sendfile
    :
217 |                 }
218 |
219 |                 self.completeResponse(context, trailers: trailers, promise: nil)
    |                 `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
220 |             }
221 |         }
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:235:76: warning: converting non-sendable function value to '@Sendable () throws -> ()' may introduce data races
233 |                 self.buffer.writeString("line \(self.continuousCount)\n")
234 |                 context.writeAndFlush(Self.wrapOutboundOut(.body(.byteBuffer(self.buffer)))).map {
235 |                     context.eventLoop.scheduleTask(in: .milliseconds(400), doNext)
    |                                                                            `- warning: converting non-sendable function value to '@Sendable () throws -> ()' may introduce data races
236 |                 }.whenFailure { (_: Error) in
237 |                     self.completeResponse(context, trailers: nil, promise: nil)
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:235:21: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
233 |                 self.buffer.writeString("line \(self.continuousCount)\n")
234 |                 context.writeAndFlush(Self.wrapOutboundOut(.body(.byteBuffer(self.buffer)))).map {
235 |                     context.eventLoop.scheduleTask(in: .milliseconds(400), doNext)
    |                     `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
236 |                 }.whenFailure { (_: Error) in
237 |                     self.completeResponse(context, trailers: nil, promise: nil)
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:235:76: warning: capture of 'doNext()' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
233 |                 self.buffer.writeString("line \(self.continuousCount)\n")
234 |                 context.writeAndFlush(Self.wrapOutboundOut(.body(.byteBuffer(self.buffer)))).map {
235 |                     context.eventLoop.scheduleTask(in: .milliseconds(400), doNext)
    |                                                                            |- warning: capture of 'doNext()' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                                                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
236 |                 }.whenFailure { (_: Error) in
237 |                     self.completeResponse(context, trailers: nil, promise: nil)
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:230:18: warning: concurrently-executed local function 'doNext()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
228 |             self.continuousCount = 0
229 |             self.state.requestReceived()
230 |             func doNext() {
    |                  `- warning: concurrently-executed local function 'doNext()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
231 |                 self.buffer.clear()
232 |                 self.continuousCount += 1
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:237:21: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 61 | }
 62 |
 63 | private final class HTTPHandler: ChannelInboundHandler {
    |                     `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 64 |     private enum FileIOMethod {
 65 |         case sendfile
    :
235 |                     context.eventLoop.scheduleTask(in: .milliseconds(400), doNext)
236 |                 }.whenFailure { (_: Error) in
237 |                     self.completeResponse(context, trailers: nil, promise: nil)
    |                     `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
238 |                 }
239 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:237:43: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
235 |                     context.eventLoop.scheduleTask(in: .milliseconds(400), doNext)
236 |                 }.whenFailure { (_: Error) in
237 |                     self.completeResponse(context, trailers: nil, promise: nil)
    |                                           `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
238 |                 }
239 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:269:67: warning: converting non-sendable function value to '@Sendable () throws -> ()' may introduce data races
267 |                 context.writeAndFlush(Self.wrapOutboundOut(.body(.byteBuffer(self.buffer)))).whenSuccess {
268 |                     if self.continuousCount < strings.count {
269 |                         context.eventLoop.scheduleTask(in: delay, doNext)
    |                                                                   `- warning: converting non-sendable function value to '@Sendable () throws -> ()' may introduce data races
270 |                     } else {
271 |                         self.completeResponse(context, trailers: nil, promise: nil)
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:268:24: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 61 | }
 62 |
 63 | private final class HTTPHandler: ChannelInboundHandler {
    |                     `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 64 |     private enum FileIOMethod {
 65 |         case sendfile
    :
266 |                 self.continuousCount += 1
267 |                 context.writeAndFlush(Self.wrapOutboundOut(.body(.byteBuffer(self.buffer)))).whenSuccess {
268 |                     if self.continuousCount < strings.count {
    |                        `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
269 |                         context.eventLoop.scheduleTask(in: delay, doNext)
270 |                     } else {
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:269:25: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
267 |                 context.writeAndFlush(Self.wrapOutboundOut(.body(.byteBuffer(self.buffer)))).whenSuccess {
268 |                     if self.continuousCount < strings.count {
269 |                         context.eventLoop.scheduleTask(in: delay, doNext)
    |                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
270 |                     } else {
271 |                         self.completeResponse(context, trailers: nil, promise: nil)
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:269:67: warning: capture of 'doNext()' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
267 |                 context.writeAndFlush(Self.wrapOutboundOut(.body(.byteBuffer(self.buffer)))).whenSuccess {
268 |                     if self.continuousCount < strings.count {
269 |                         context.eventLoop.scheduleTask(in: delay, doNext)
    |                                                                   |- warning: capture of 'doNext()' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                                                   `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
270 |                     } else {
271 |                         self.completeResponse(context, trailers: nil, promise: nil)
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:263:18: warning: concurrently-executed local function 'doNext()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
261 |             self.continuousCount = 0
262 |             self.state.requestReceived()
263 |             func doNext() {
    |                  `- warning: concurrently-executed local function 'doNext()' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
264 |                 self.buffer.clear()
265 |                 self.buffer.writeString(strings[self.continuousCount])
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:405:17: warning: capture of 'sendErrorResponse(request:_:)' with non-sendable type '(HTTPRequestHead, any Error) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
403 |             let fileHandleAndRegion = self.fileIO.openFile(path: path, eventLoop: context.eventLoop)
404 |             fileHandleAndRegion.whenFailure {
405 |                 sendErrorResponse(request: request, $0)
    |                 |- warning: capture of 'sendErrorResponse(request:_:)' with non-sendable type '(HTTPRequestHead, any Error) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
406 |             }
407 |             fileHandleAndRegion.whenSuccess { (file, region) in
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:360:14: warning: concurrently-executed local function 'sendErrorResponse(request:_:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
358 |         self.buffer.clear()
359 |
360 |         func sendErrorResponse(request: HTTPRequestHead, _ error: Error) {
    |              `- warning: concurrently-executed local function 'sendErrorResponse(request:_:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
361 |             var body = context.channel.allocator.buffer(capacity: 128)
362 |             let response = { () -> HTTPResponseHead in
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:411:36: warning: capture of 'responseHead(request:fileRegion:)' with non-sendable type '(HTTPRequestHead, FileRegion) -> HTTPResponseHead' in a `@Sendable` closure; this is an error in the Swift 6 language mode
409 |                 case .nonblockingFileIO:
410 |                     var responseStarted = false
411 |                     let response = responseHead(request: request, fileRegion: region)
    |                                    |- warning: capture of 'responseHead(request:fileRegion:)' with non-sendable type '(HTTPRequestHead, FileRegion) -> HTTPResponseHead' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                                    `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
412 |                     if region.readableBytes == 0 {
413 |                         responseStarted = true
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:414:25: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
412 |                     if region.readableBytes == 0 {
413 |                         responseStarted = true
414 |                         context.write(Self.wrapOutboundOut(.head(response)), promise: nil)
    |                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
415 |                     }
416 |                     return self.fileIO.readChunked(
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:416:28: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 61 | }
 62 |
 63 | private final class HTTPHandler: ChannelInboundHandler {
    |                     `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 64 |     private enum FileIOMethod {
 65 |         case sendfile
    :
414 |                         context.write(Self.wrapOutboundOut(.head(response)), promise: nil)
415 |                     }
416 |                     return self.fileIO.readChunked(
    |                            `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
417 |                         fileRegion: region,
418 |                         chunkSize: 32 * 1024,
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:385:14: warning: concurrently-executed local function 'responseHead(request:fileRegion:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
383 |         }
384 |
385 |         func responseHead(request: HTTPRequestHead, fileRegion region: FileRegion) -> HTTPResponseHead {
    |              `- warning: concurrently-executed local function 'responseHead(request:fileRegion:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
386 |             var response = httpResponseHead(request: request, status: .ok)
387 |             response.headers.add(name: "Content-Length", value: "\(region.endIndex)")
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:424:29: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
422 |                         if !responseStarted {
423 |                             responseStarted = true
424 |                             context.write(Self.wrapOutboundOut(.head(response)), promise: nil)
    |                             `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
425 |                         }
426 |                         return context.writeAndFlush(Self.wrapOutboundOut(.body(.byteBuffer(buffer))))
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:422:29: warning: reference to captured var 'responseStarted' in concurrently-executing code; this is an error in the Swift 6 language mode
420 |                         eventLoop: context.eventLoop
421 |                     ) { buffer in
422 |                         if !responseStarted {
    |                             `- warning: reference to captured var 'responseStarted' in concurrently-executing code; this is an error in the Swift 6 language mode
423 |                             responseStarted = true
424 |                             context.write(Self.wrapOutboundOut(.head(response)), promise: nil)
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:423:29: warning: mutation of captured var 'responseStarted' in concurrently-executing code; this is an error in the Swift 6 language mode
421 |                     ) { buffer in
422 |                         if !responseStarted {
423 |                             responseStarted = true
    |                             `- warning: mutation of captured var 'responseStarted' in concurrently-executing code; this is an error in the Swift 6 language mode
424 |                             context.write(Self.wrapOutboundOut(.head(response)), promise: nil)
425 |                         }
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:428:33: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
426 |                         return context.writeAndFlush(Self.wrapOutboundOut(.body(.byteBuffer(buffer))))
427 |                     }.flatMap { () -> EventLoopFuture<Void> in
428 |                         let p = context.eventLoop.makePromise(of: Void.self)
    |                                 `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
429 |                         self.completeResponse(context, trailers: nil, promise: p)
430 |                         return p.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:429:25: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 61 | }
 62 |
 63 | private final class HTTPHandler: ChannelInboundHandler {
    |                     `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 64 |     private enum FileIOMethod {
 65 |         case sendfile
    :
427 |                     }.flatMap { () -> EventLoopFuture<Void> in
428 |                         let p = context.eventLoop.makePromise(of: Void.self)
429 |                         self.completeResponse(context, trailers: nil, promise: p)
    |                         `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
430 |                         return p.futureResult
431 |                     }.flatMapError { error in
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:434:29: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
432 |                         if !responseStarted {
433 |                             let response = httpResponseHead(request: request, status: .ok)
434 |                             context.write(Self.wrapOutboundOut(.head(response)), promise: nil)
    |                             `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
435 |                             var buffer = context.channel.allocator.buffer(capacity: 100)
436 |                             buffer.writeString("fail: \(error)")
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:438:29: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 61 | }
 62 |
 63 | private final class HTTPHandler: ChannelInboundHandler {
    |                     `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 64 |     private enum FileIOMethod {
 65 |         case sendfile
    :
436 |                             buffer.writeString("fail: \(error)")
437 |                             context.write(Self.wrapOutboundOut(.body(.byteBuffer(buffer))), promise: nil)
438 |                             self.state.responseComplete()
    |                             `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
439 |                             return context.writeAndFlush(Self.wrapOutboundOut(.end(nil)))
440 |                         } else {
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:432:29: warning: reference to captured var 'responseStarted' in concurrently-executing code; this is an error in the Swift 6 language mode
430 |                         return p.futureResult
431 |                     }.flatMapError { error in
432 |                         if !responseStarted {
    |                             `- warning: reference to captured var 'responseStarted' in concurrently-executing code; this is an error in the Swift 6 language mode
433 |                             let response = httpResponseHead(request: request, status: .ok)
434 |                             context.write(Self.wrapOutboundOut(.head(response)), promise: nil)
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:444:34: warning: capture of 'file' with non-sendable type 'NIOFileHandle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
442 |                         }
443 |                     }.whenComplete { (_: Result<Void, Error>) in
444 |                         _ = try? file.close()
    |                                  `- warning: capture of 'file' with non-sendable type 'NIOFileHandle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
445 |                     }
446 |                 case .sendfile:
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/FileHandle.swift:47:20: note: class 'NIOFileHandle' does not conform to the 'Sendable' protocol
 45 | ///
 46 | /// - warning: `NIOFileHandle` objects are not thread-safe and are mutable. They also cannot be fully thread-safe as they refer to a global underlying file descriptor.
 47 | public final class NIOFileHandle: FileDescriptor {
    |                    `- note: class 'NIOFileHandle' does not conform to the 'Sendable' protocol
 48 |     public private(set) var isOpen: Bool
 49 |     private let descriptor: CInt
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:14:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOCore'
 12 | //
 13 | //===----------------------------------------------------------------------===//
 14 | import NIOCore
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'NIOCore'
 15 | import NIOHTTP1
 16 | import NIOPosix
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:450:33: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
448 |                     context.write(Self.wrapOutboundOut(.head(response)), promise: nil)
449 |                     context.writeAndFlush(Self.wrapOutboundOut(.body(.fileRegion(region)))).flatMap {
450 |                         let p = context.eventLoop.makePromise(of: Void.self)
    |                                 `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
451 |                         self.completeResponse(context, trailers: nil, promise: p)
452 |                         return p.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:451:25: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 61 | }
 62 |
 63 | private final class HTTPHandler: ChannelInboundHandler {
    |                     `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 64 |     private enum FileIOMethod {
 65 |         case sendfile
    :
449 |                     context.writeAndFlush(Self.wrapOutboundOut(.body(.fileRegion(region)))).flatMap {
450 |                         let p = context.eventLoop.makePromise(of: Void.self)
451 |                         self.completeResponse(context, trailers: nil, promise: p)
    |                         `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
452 |                         return p.futureResult
453 |                     }.flatMapError { (_: Error) in
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:454:25: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
452 |                         return p.futureResult
453 |                     }.flatMapError { (_: Error) in
454 |                         context.close()
    |                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
455 |                     }.whenComplete { (_: Result<Void, Error>) in
456 |                         _ = try? file.close()
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:456:34: warning: capture of 'file' with non-sendable type 'NIOFileHandle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
454 |                         context.close()
455 |                     }.whenComplete { (_: Result<Void, Error>) in
456 |                         _ = try? file.close()
    |                                  `- warning: capture of 'file' with non-sendable type 'NIOFileHandle' in a `@Sendable` closure; this is an error in the Swift 6 language mode
457 |                     }
458 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/FileHandle.swift:47:20: note: class 'NIOFileHandle' does not conform to the 'Sendable' protocol
 45 | ///
 46 | /// - warning: `NIOFileHandle` objects are not thread-safe and are mutable. They also cannot be fully thread-safe as they refer to a global underlying file descriptor.
 47 | public final class NIOFileHandle: FileDescriptor {
    |                    `- note: class 'NIOFileHandle' does not conform to the 'Sendable' protocol
 48 |     public private(set) var isOpen: Bool
 49 |     private let descriptor: CInt
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1Server/main.swift:476:78: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
474 |         let promise = self.keepAlive ? promise : (promise ?? context.eventLoop.makePromise())
475 |         if !self.keepAlive {
476 |             promise!.futureResult.whenComplete { (_: Result<Void, Error>) in context.close(promise: nil) }
    |                                                                              `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
477 |         }
478 |         self.handler = nil
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1496:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1494 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1495 | /// `ChannelHandler`.
1496 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1497 |     // visible for ChannelPipeline to modify
1498 |     fileprivate var next: Optional<ChannelHandlerContext>
[427/485] Write Objects.LinkFileList
[429/485] Compiling NIOCrashTester CrashTests+HTTP.swift
[430/485] Compiling NIOCrashTester CrashTests+LoopBound.swift
[430/485] Linking NIOHTTP1Client
[432/485] Compiling NIOCrashTester CrashTests+Strict.swift
[432/485] Linking NIOAsyncAwaitDemo
[433/485] Applying NIOHTTP1Client
[434/485] Applying NIOAsyncAwaitDemo
[436/485] Compiling NIOCrashTester CrashTests+ByteBuffer.swift
[437/485] Compiling NIOCrashTester CrashTestSuites.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOCrashTester/CrashTestSuites.swift:16:5: warning: let 'crashTestSuites' is not concurrency-safe because non-'Sendable' type '[String : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | #if !canImport(Darwin) || os(macOS)
16 | let crashTestSuites: [String: Any] = [
   |     |- warning: let 'crashTestSuites' is not concurrency-safe because non-'Sendable' type '[String : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'crashTestSuites' with '@MainActor' if property should only be accessed from the main actor
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |     "EventLoopCrashTests": EventLoopCrashTests(),
18 |     "ByteBufferCrashTests": ByteBufferCrashTests(),
/Users/admin/builder/spi-builder-workspace/Sources/NIOCrashTester/CrashTests+EventLoop.swift:86:21: warning: capture of 'f' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 84 |             func f() {
 85 |                 el.scheduleTask(in: .nanoseconds(0)) { [f] in
 86 |                     f()
    |                     |- warning: capture of 'f' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 87 |                 }.futureResult.whenFailure { [f] error in
 88 |                     guard case .some(.shutdown) = error as? EventLoopError else {
/Users/admin/builder/spi-builder-workspace/Sources/NIOCrashTester/CrashTests+EventLoop.swift:91:21: warning: capture of 'f' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 89 |                         exit(3)
 90 |                     }
 91 |                     f()
    |                     |- warning: capture of 'f' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 92 |                 }
 93 |             }
[438/485] Compiling NIOCrashTester CrashTests+EventLoop.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOCrashTester/CrashTests+EventLoop.swift:86:21: warning: capture of 'f' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 84 |             func f() {
 85 |                 el.scheduleTask(in: .nanoseconds(0)) { [f] in
 86 |                     f()
    |                     |- warning: capture of 'f' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 87 |                 }.futureResult.whenFailure { [f] error in
 88 |                     guard case .some(.shutdown) = error as? EventLoopError else {
/Users/admin/builder/spi-builder-workspace/Sources/NIOCrashTester/CrashTests+EventLoop.swift:91:21: warning: capture of 'f' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 89 |                         exit(3)
 90 |                     }
 91 |                     f()
    |                     |- warning: capture of 'f' with non-sendable type '() -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                     `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 92 |                 }
 93 |             }
[439/485] Compiling NIOPerformanceTester NIOAsyncSequenceProducerBenchmark.swift
[440/485] Compiling NIOPerformanceTester NIOAsyncWriterSingleWritesBenchmark.swift
[441/485] Compiling NIOPerformanceTester ExecuteBenchmark.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/ExecuteBenchmark.swift:39:26: warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class ExecuteBenchmark: Benchmark {
   |             `- note: class 'ExecuteBenchmark' does not conform to the 'Sendable' protocol
20 |     private var group: MultiThreadedEventLoopGroup!
21 |     private var loop: EventLoop!
   :
37 |         try! self.loop.submit {
38 |             var counter: Int = 0
39 |             for _ in 0..<self.numTasks {
   |                          `- warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 |                 self.loop.scheduleTask(in: .nanoseconds(0)) {
41 |                     counter &+= 1
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/ExecuteBenchmark.swift:41:21: warning: mutation of captured var 'counter' in concurrently-executing code; this is an error in the Swift 6 language mode
39 |             for _ in 0..<self.numTasks {
40 |                 self.loop.scheduleTask(in: .nanoseconds(0)) {
41 |                     counter &+= 1
   |                     `- warning: mutation of captured var 'counter' in concurrently-executing code; this is an error in the Swift 6 language mode
42 |                 }
43 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/ExecuteBenchmark.swift:51:26: warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class ExecuteBenchmark: Benchmark {
   |             `- note: class 'ExecuteBenchmark' does not conform to the 'Sendable' protocol
20 |     private var group: MultiThreadedEventLoopGroup!
21 |     private var loop: EventLoop!
   :
49 |     func run() -> Int {
50 |         try! self.loop.submit {
51 |             for _ in 0..<self.numTasks {
   |                          `- warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
52 |                 self.dg.enter()
53 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/ExecuteBenchmark.swift:55:21: warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class ExecuteBenchmark: Benchmark {
   |             `- note: class 'ExecuteBenchmark' does not conform to the 'Sendable' protocol
20 |     private var group: MultiThreadedEventLoopGroup!
21 |     private var loop: EventLoop!
   :
53 |
54 |                 self.loop.execute {
55 |                     self.counter &+= 1
   |                     `- warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 |                     self.dg.leave()
57 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/LockBenchmark.swift:54:17: warning: capture of 'self' with non-sendable type 'NIOLockBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | import NIOPosix
19 |
20 | final class NIOLockBenchmark: Benchmark {
   |             `- note: class 'NIOLockBenchmark' does not conform to the 'Sendable' protocol
21 |     private let numberOfThreads: Int
22 |     private let lockOperationsPerThread: Int
   :
52 |         for _ in 0..<self.numberOfThreads {
53 |             _ = self.threadPool.runIfActive(eventLoop: self.group.next()) {
54 |                 self.sem1.signal()
   |                 `- warning: capture of 'self' with non-sendable type 'NIOLockBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 |                 self.sem2.wait()
56 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/LockBenchmark.swift:59:25: warning: capture of 'self' with non-sendable type 'NIOLockBenchmark' in an isolated closure; this is an error in the Swift 6 language mode
18 | import NIOPosix
19 |
20 | final class NIOLockBenchmark: Benchmark {
   |             `- note: class 'NIOLockBenchmark' does not conform to the 'Sendable' protocol
21 |     private let numberOfThreads: Int
22 |     private let lockOperationsPerThread: Int
   :
57 |                 for _ in 0..<self.lockOperationsPerThread {
58 |                     self.lock.withLock {
59 |                         self.opsDone &+= 1
   |                         `- warning: capture of 'self' with non-sendable type 'NIOLockBenchmark' in an isolated closure; this is an error in the Swift 6 language mode
60 |                     }
61 |                 }
[442/485] Compiling NIOPerformanceTester LockBenchmark.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/ExecuteBenchmark.swift:39:26: warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class ExecuteBenchmark: Benchmark {
   |             `- note: class 'ExecuteBenchmark' does not conform to the 'Sendable' protocol
20 |     private var group: MultiThreadedEventLoopGroup!
21 |     private var loop: EventLoop!
   :
37 |         try! self.loop.submit {
38 |             var counter: Int = 0
39 |             for _ in 0..<self.numTasks {
   |                          `- warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 |                 self.loop.scheduleTask(in: .nanoseconds(0)) {
41 |                     counter &+= 1
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/ExecuteBenchmark.swift:41:21: warning: mutation of captured var 'counter' in concurrently-executing code; this is an error in the Swift 6 language mode
39 |             for _ in 0..<self.numTasks {
40 |                 self.loop.scheduleTask(in: .nanoseconds(0)) {
41 |                     counter &+= 1
   |                     `- warning: mutation of captured var 'counter' in concurrently-executing code; this is an error in the Swift 6 language mode
42 |                 }
43 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/ExecuteBenchmark.swift:51:26: warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class ExecuteBenchmark: Benchmark {
   |             `- note: class 'ExecuteBenchmark' does not conform to the 'Sendable' protocol
20 |     private var group: MultiThreadedEventLoopGroup!
21 |     private var loop: EventLoop!
   :
49 |     func run() -> Int {
50 |         try! self.loop.submit {
51 |             for _ in 0..<self.numTasks {
   |                          `- warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
52 |                 self.dg.enter()
53 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/ExecuteBenchmark.swift:55:21: warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class ExecuteBenchmark: Benchmark {
   |             `- note: class 'ExecuteBenchmark' does not conform to the 'Sendable' protocol
20 |     private var group: MultiThreadedEventLoopGroup!
21 |     private var loop: EventLoop!
   :
53 |
54 |                 self.loop.execute {
55 |                     self.counter &+= 1
   |                     `- warning: capture of 'self' with non-sendable type 'ExecuteBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 |                     self.dg.leave()
57 |                 }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/LockBenchmark.swift:54:17: warning: capture of 'self' with non-sendable type 'NIOLockBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
18 | import NIOPosix
19 |
20 | final class NIOLockBenchmark: Benchmark {
   |             `- note: class 'NIOLockBenchmark' does not conform to the 'Sendable' protocol
21 |     private let numberOfThreads: Int
22 |     private let lockOperationsPerThread: Int
   :
52 |         for _ in 0..<self.numberOfThreads {
53 |             _ = self.threadPool.runIfActive(eventLoop: self.group.next()) {
54 |                 self.sem1.signal()
   |                 `- warning: capture of 'self' with non-sendable type 'NIOLockBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
55 |                 self.sem2.wait()
56 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/LockBenchmark.swift:59:25: warning: capture of 'self' with non-sendable type 'NIOLockBenchmark' in an isolated closure; this is an error in the Swift 6 language mode
18 | import NIOPosix
19 |
20 | final class NIOLockBenchmark: Benchmark {
   |             `- note: class 'NIOLockBenchmark' does not conform to the 'Sendable' protocol
21 |     private let numberOfThreads: Int
22 |     private let lockOperationsPerThread: Int
   :
57 |                 for _ in 0..<self.lockOperationsPerThread {
58 |                     self.lock.withLock {
59 |                         self.opsDone &+= 1
   |                         `- warning: capture of 'self' with non-sendable type 'NIOLockBenchmark' in an isolated closure; this is an error in the Swift 6 language mode
60 |                     }
61 |                 }
[443/487] Emitting module NIOFileSystemTour
[444/487] Compiling NIOFileSystemTour NIOFileSystemTour.swift
[445/487] Compiling NIOWebSocketClient Client.swift
[446/487] Emitting module NIOWebSocketClient
[446/487] Write Objects.LinkFileList
[448/487] Linking NIOHTTP1Server
[450/487] Compiling NIOPerformanceTester ChannelPipelineBenchmark.swift
[451/487] Compiling NIOPerformanceTester CircularBufferCopyToArrayBenchmark.swift
[452/487] Compiling NIOPerformanceTester CircularBufferIntoByteBufferBenchmark.swift
[453/487] Compiling NIOPerformanceTester DeadlineNowBenchmark.swift
[454/487] Compiling NIOPerformanceTester WebSocketFrameDecoderBenchmark.swift
[455/487] Compiling NIOPerformanceTester WebSocketFrameEncoderBenchmark.swift
[456/487] Emitting module NIOCrashTester
/Users/admin/builder/spi-builder-workspace/Sources/NIOCrashTester/CrashTestSuites.swift:16:5: warning: let 'crashTestSuites' is not concurrency-safe because non-'Sendable' type '[String : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | #if !canImport(Darwin) || os(macOS)
16 | let crashTestSuites: [String: Any] = [
   |     |- warning: let 'crashTestSuites' is not concurrency-safe because non-'Sendable' type '[String : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'crashTestSuites' with '@MainActor' if property should only be accessed from the main actor
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |     "EventLoopCrashTests": EventLoopCrashTests(),
18 |     "ByteBufferCrashTests": ByteBufferCrashTests(),
[456/487] Applying NIOHTTP1Server
[458/487] Compiling NIOPerformanceTester Benchmark.swift
[459/487] Compiling NIOPerformanceTester ByteBufferViewContainsBenchmark.swift
[460/487] Compiling NIOPerformanceTester ByteBufferViewCopyToArrayBenchmark.swift
[461/487] Compiling NIOCrashTester OutputGrepper.swift
[462/487] Compiling NIOCrashTester CrashTests+System.swift
[463/487] Compiling NIOCrashTester main.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOCrashTester/CrashTestSuites.swift:16:5: warning: let 'crashTestSuites' is not concurrency-safe because non-'Sendable' type '[String : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
14 |
15 | #if !canImport(Darwin) || os(macOS)
16 | let crashTestSuites: [String: Any] = [
   |     |- warning: let 'crashTestSuites' is not concurrency-safe because non-'Sendable' type '[String : Any]' may have shared mutable state; this is an error in the Swift 6 language mode
   |     |- note: annotate 'crashTestSuites' with '@MainActor' if property should only be accessed from the main actor
   |     `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |     "EventLoopCrashTests": EventLoopCrashTests(),
18 |     "ByteBufferCrashTests": ByteBufferCrashTests(),
[463/487] Write Objects.LinkFileList
[465/487] Compiling NIOPerformanceTester ByteBufferViewIteratorBenchmark.swift
[466/487] Compiling NIOPerformanceTester ByteBufferWriteMultipleBenchmarks.swift
[467/487] Compiling NIOPerformanceTester ByteToMessageDecoderDecodeManySmallsBenchmark.swift
[468/487] Compiling NIOPerformanceTester RunIfActiveBenchmark.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/SchedulingAndRunningBenchmark.swift:39:26: warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class SchedulingAndRunningBenchmark: Benchmark {
   |             `- note: class 'SchedulingAndRunningBenchmark' does not conform to the 'Sendable' protocol
20 |     private var group: MultiThreadedEventLoopGroup!
21 |     private var loop: EventLoop!
   :
37 |         try! self.loop.submit {
38 |             var counter: Int = 0
39 |             for _ in 0..<self.numTasks {
   |                          `- warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 |                 self.loop.scheduleTask(in: .nanoseconds(0)) {
41 |                     counter &+= 1
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/SchedulingAndRunningBenchmark.swift:41:21: warning: mutation of captured var 'counter' in concurrently-executing code; this is an error in the Swift 6 language mode
39 |             for _ in 0..<self.numTasks {
40 |                 self.loop.scheduleTask(in: .nanoseconds(0)) {
41 |                     counter &+= 1
   |                     `- warning: mutation of captured var 'counter' in concurrently-executing code; this is an error in the Swift 6 language mode
42 |                 }
43 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/SchedulingAndRunningBenchmark.swift:51:26: warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class SchedulingAndRunningBenchmark: Benchmark {
   |             `- note: class 'SchedulingAndRunningBenchmark' does not conform to the 'Sendable' protocol
20 |     private var group: MultiThreadedEventLoopGroup!
21 |     private var loop: EventLoop!
   :
49 |     func run() -> Int {
50 |         try! self.loop.submit {
51 |             for _ in 0..<self.numTasks {
   |                          `- warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
52 |                 self.dg.enter()
53 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/SchedulingAndRunningBenchmark.swift:55:21: warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class SchedulingAndRunningBenchmark: Benchmark {
   |             `- note: class 'SchedulingAndRunningBenchmark' does not conform to the 'Sendable' protocol
20 |     private var group: MultiThreadedEventLoopGroup!
21 |     private var loop: EventLoop!
   :
53 |
54 |                 self.loop.scheduleTask(in: .nanoseconds(0)) {
55 |                     self.counter &+= 1
   |                     `- warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 |                     self.dg.leave()
57 |                 }
[469/487] Compiling NIOPerformanceTester SchedulingAndRunningBenchmark.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/SchedulingAndRunningBenchmark.swift:39:26: warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class SchedulingAndRunningBenchmark: Benchmark {
   |             `- note: class 'SchedulingAndRunningBenchmark' does not conform to the 'Sendable' protocol
20 |     private var group: MultiThreadedEventLoopGroup!
21 |     private var loop: EventLoop!
   :
37 |         try! self.loop.submit {
38 |             var counter: Int = 0
39 |             for _ in 0..<self.numTasks {
   |                          `- warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 |                 self.loop.scheduleTask(in: .nanoseconds(0)) {
41 |                     counter &+= 1
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/SchedulingAndRunningBenchmark.swift:41:21: warning: mutation of captured var 'counter' in concurrently-executing code; this is an error in the Swift 6 language mode
39 |             for _ in 0..<self.numTasks {
40 |                 self.loop.scheduleTask(in: .nanoseconds(0)) {
41 |                     counter &+= 1
   |                     `- warning: mutation of captured var 'counter' in concurrently-executing code; this is an error in the Swift 6 language mode
42 |                 }
43 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/SchedulingAndRunningBenchmark.swift:51:26: warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class SchedulingAndRunningBenchmark: Benchmark {
   |             `- note: class 'SchedulingAndRunningBenchmark' does not conform to the 'Sendable' protocol
20 |     private var group: MultiThreadedEventLoopGroup!
21 |     private var loop: EventLoop!
   :
49 |     func run() -> Int {
50 |         try! self.loop.submit {
51 |             for _ in 0..<self.numTasks {
   |                          `- warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
52 |                 self.dg.enter()
53 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/SchedulingAndRunningBenchmark.swift:55:21: warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 | import NIOPosix
18 |
19 | final class SchedulingAndRunningBenchmark: Benchmark {
   |             `- note: class 'SchedulingAndRunningBenchmark' does not conform to the 'Sendable' protocol
20 |     private var group: MultiThreadedEventLoopGroup!
21 |     private var loop: EventLoop!
   :
53 |
54 |                 self.loop.scheduleTask(in: .nanoseconds(0)) {
55 |                     self.counter &+= 1
   |                     `- warning: capture of 'self' with non-sendable type 'SchedulingAndRunningBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
56 |                     self.dg.leave()
57 |                 }
[470/487] Compiling NIOPerformanceTester TCPThroughputBenchmark.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/TCPThroughputBenchmark.swift:119:17: warning: capture of 'self' with non-sendable type 'TCPThroughputBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 22 |
 23 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
 24 | final class TCPThroughputBenchmark: Benchmark {
    |             `- note: class 'TCPThroughputBenchmark' does not conform to the 'Sendable' protocol
 25 |
 26 |     private let messages: Int
    :
117 |         self.serverChannel = try ServerBootstrap(group: self.group)
118 |             .childChannelInitializer { channel in
119 |                 self.serverHandler = ServerHandler(connectionEstablishedPromise)
    |                 `- warning: capture of 'self' with non-sendable type 'TCPThroughputBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 |                 return channel.pipeline.addHandler(self.serverHandler)
121 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/TCPThroughputBenchmark.swift:168:13: warning: capture of 'serverHandler' with non-sendable type 'TCPThroughputBenchmark.ServerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 35 |     private var serverEventLoop: EventLoop!
 36 |
 37 |     final class ServerHandler: ChannelInboundHandler {
    |                 `- note: class 'ServerHandler' does not conform to the 'Sendable' protocol
 38 |         public typealias InboundIn = ByteBuffer
 39 |         public typealias OutboundOut = ByteBuffer
    :
166 |
167 |         self.serverEventLoop.execute {
168 |             serverHandler.send(message, times: messages)
    |             `- warning: capture of 'serverHandler' with non-sendable type 'TCPThroughputBenchmark.ServerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 |         }
170 |         try isDonePromise.futureResult.wait()
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/UDPBenchmark.swift:65:34: warning: capture of 'self' with non-sendable type 'UDPBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 | import NIOPosix
 16 |
 17 | final class UDPBenchmark {
    |             `- note: class 'UDPBenchmark' does not conform to the 'Sendable' protocol
 18 |     /// Request to send.
 19 |     private let data: ByteBuffer
    :
 63 |                     config: .init(
 64 |                         remoteAddress: remoteAddress,
 65 |                         request: self.data,
    |                                  `- warning: capture of 'self' with non-sendable type 'UDPBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 66 |                         requests: self.numberOfRequests,
 67 |                         writesPerFlush: self.vectorWrites
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/UDPBenchmark.swift:238:17: warning: capture of 'self' with non-sendable type 'UDPBenchmark.EchoHandlerClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 |     }
107 |
108 |     final class EchoHandlerClient: ChannelInboundHandler, RemovableChannelHandler {
    |                 `- note: class 'EchoHandlerClient' does not conform to the 'Sendable' protocol
109 |         typealias InboundIn = AddressedEnvelope<ByteBuffer>
110 |         typealias OutboundOut = AddressedEnvelope<ByteBuffer>
    :
236 |             let p = self.eventLoop.makePromise(of: Void.self)
237 |             self.eventLoop.execute {
238 |                 self._run(promise: p)
    |                 `- warning: capture of 'self' with non-sendable type 'UDPBenchmark.EchoHandlerClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
239 |             }
240 |             return p.futureResult
[471/487] Compiling NIOPerformanceTester UDPBenchmark.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/TCPThroughputBenchmark.swift:119:17: warning: capture of 'self' with non-sendable type 'TCPThroughputBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 22 |
 23 | @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
 24 | final class TCPThroughputBenchmark: Benchmark {
    |             `- note: class 'TCPThroughputBenchmark' does not conform to the 'Sendable' protocol
 25 |
 26 |     private let messages: Int
    :
117 |         self.serverChannel = try ServerBootstrap(group: self.group)
118 |             .childChannelInitializer { channel in
119 |                 self.serverHandler = ServerHandler(connectionEstablishedPromise)
    |                 `- warning: capture of 'self' with non-sendable type 'TCPThroughputBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
120 |                 return channel.pipeline.addHandler(self.serverHandler)
121 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/TCPThroughputBenchmark.swift:168:13: warning: capture of 'serverHandler' with non-sendable type 'TCPThroughputBenchmark.ServerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 35 |     private var serverEventLoop: EventLoop!
 36 |
 37 |     final class ServerHandler: ChannelInboundHandler {
    |                 `- note: class 'ServerHandler' does not conform to the 'Sendable' protocol
 38 |         public typealias InboundIn = ByteBuffer
 39 |         public typealias OutboundOut = ByteBuffer
    :
166 |
167 |         self.serverEventLoop.execute {
168 |             serverHandler.send(message, times: messages)
    |             `- warning: capture of 'serverHandler' with non-sendable type 'TCPThroughputBenchmark.ServerHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
169 |         }
170 |         try isDonePromise.futureResult.wait()
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/UDPBenchmark.swift:65:34: warning: capture of 'self' with non-sendable type 'UDPBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 15 | import NIOPosix
 16 |
 17 | final class UDPBenchmark {
    |             `- note: class 'UDPBenchmark' does not conform to the 'Sendable' protocol
 18 |     /// Request to send.
 19 |     private let data: ByteBuffer
    :
 63 |                     config: .init(
 64 |                         remoteAddress: remoteAddress,
 65 |                         request: self.data,
    |                                  `- warning: capture of 'self' with non-sendable type 'UDPBenchmark' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 66 |                         requests: self.numberOfRequests,
 67 |                         writesPerFlush: self.vectorWrites
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/UDPBenchmark.swift:238:17: warning: capture of 'self' with non-sendable type 'UDPBenchmark.EchoHandlerClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
106 |     }
107 |
108 |     final class EchoHandlerClient: ChannelInboundHandler, RemovableChannelHandler {
    |                 `- note: class 'EchoHandlerClient' does not conform to the 'Sendable' protocol
109 |         typealias InboundIn = AddressedEnvelope<ByteBuffer>
110 |         typealias OutboundOut = AddressedEnvelope<ByteBuffer>
    :
236 |             let p = self.eventLoop.makePromise(of: Void.self)
237 |             self.eventLoop.execute {
238 |                 self._run(promise: p)
    |                 `- warning: capture of 'self' with non-sendable type 'UDPBenchmark.EchoHandlerClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
239 |             }
240 |             return p.futureResult
[472/487] Emitting module NIOWebSocketServer
[473/487] Compiling NIOWebSocketServer Server.swift
[473/487] Write Objects.LinkFileList
[475/487] Emitting module NIOPerformanceTester
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:642:37: warning: capture of 'measuringHandler' with non-sendable type 'MeasuringHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 567 |
 568 | try measureAndPrint(desc: "no-net_http1_1k_reqs_1_conn") {
 569 |     final class MeasuringHandler: ChannelDuplexHandler {
     |                 `- note: class 'MeasuringHandler' does not conform to the 'Sendable' protocol
 570 |         typealias InboundIn = Never
 571 |         typealias InboundOut = ByteBuffer
     :
 640 |         channel.pipeline.addHandler(SimpleHTTPServer())
 641 |     }.flatMap {
 642 |         channel.pipeline.addHandler(measuringHandler, position: .first)
     |                                     `- warning: capture of 'measuringHandler' with non-sendable type 'MeasuringHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 643 |     }.wait()
 644 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:661:45: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 175 | head.headers.add(name: "Host", value: "localhost")
 176 |
 177 | final class RepeatedRequests: ChannelInboundHandler {
     |             `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
 178 |     typealias InboundIn = HTTPClientResponsePart
 179 |     typealias OutboundOut = HTTPClientRequestPart
     :
 659 |         .channelInitializer { channel in
 660 |             channel.pipeline.addHTTPClientHandlers().flatMap {
 661 |                 channel.pipeline.addHandler(repeatedRequestsHandler)
     |                                             `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 662 |             }
 663 |         }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:661:45: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 175 | head.headers.add(name: "Host", value: "localhost")
 176 |
 177 | final class RepeatedRequests: ChannelInboundHandler {
     |             `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
 178 |     typealias InboundIn = HTTPClientResponsePart
 179 |     typealias OutboundOut = HTTPClientRequestPart
     :
 659 |         .channelInitializer { channel in
 660 |             channel.pipeline.addHTTPClientHandlers().flatMap {
 661 |                 channel.pipeline.addHandler(repeatedRequestsHandler)
     |                                             `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 662 |             }
 663 |         }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:684:49: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 175 | head.headers.add(name: "Host", value: "localhost")
 176 |
 177 | final class RepeatedRequests: ChannelInboundHandler {
     |             `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
 178 |     typealias InboundIn = HTTPClientResponsePart
 179 |     typealias OutboundOut = HTTPClientRequestPart
     :
 682 |             .channelInitializer { channel in
 683 |                 channel.pipeline.addHTTPClientHandlers().flatMap {
 684 |                     channel.pipeline.addHandler(repeatedRequestsHandler)
     |                                                 `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 685 |                 }
 686 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:684:49: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 175 | head.headers.add(name: "Host", value: "localhost")
 176 |
 177 | final class RepeatedRequests: ChannelInboundHandler {
     |             `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
 178 |     typealias InboundIn = HTTPClientResponsePart
 179 |     typealias OutboundOut = HTTPClientRequestPart
     :
 682 |             .channelInitializer { channel in
 683 |                 channel.pipeline.addHTTPClientHandlers().flatMap {
 684 |                     channel.pipeline.addHandler(repeatedRequestsHandler)
     |                                                 `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 685 |                 }
 686 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:787:66: warning: converting non-sendable function value to '@Sendable (Int, Int) -> Int' may introduce data races
 785 |
 786 |     let futures = (1...10_000).map { i in el1.makeSucceededFuture(i) }
 787 |     return try! EventLoopFuture<Int>.reduce(0, futures, on: el1, +).wait()
     |                                                                  `- warning: converting non-sendable function value to '@Sendable (Int, Int) -> Int' may introduce data races
 788 | }
 789 |
[476/487] Compiling NIOPerformanceTester main.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:642:37: warning: capture of 'measuringHandler' with non-sendable type 'MeasuringHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 567 |
 568 | try measureAndPrint(desc: "no-net_http1_1k_reqs_1_conn") {
 569 |     final class MeasuringHandler: ChannelDuplexHandler {
     |                 `- note: class 'MeasuringHandler' does not conform to the 'Sendable' protocol
 570 |         typealias InboundIn = Never
 571 |         typealias InboundOut = ByteBuffer
     :
 640 |         channel.pipeline.addHandler(SimpleHTTPServer())
 641 |     }.flatMap {
 642 |         channel.pipeline.addHandler(measuringHandler, position: .first)
     |                                     `- warning: capture of 'measuringHandler' with non-sendable type 'MeasuringHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 643 |     }.wait()
 644 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:661:45: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 175 | head.headers.add(name: "Host", value: "localhost")
 176 |
 177 | final class RepeatedRequests: ChannelInboundHandler {
     |             `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
 178 |     typealias InboundIn = HTTPClientResponsePart
 179 |     typealias OutboundOut = HTTPClientRequestPart
     :
 659 |         .channelInitializer { channel in
 660 |             channel.pipeline.addHTTPClientHandlers().flatMap {
 661 |                 channel.pipeline.addHandler(repeatedRequestsHandler)
     |                                             `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 662 |             }
 663 |         }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:661:45: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 175 | head.headers.add(name: "Host", value: "localhost")
 176 |
 177 | final class RepeatedRequests: ChannelInboundHandler {
     |             `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
 178 |     typealias InboundIn = HTTPClientResponsePart
 179 |     typealias OutboundOut = HTTPClientRequestPart
     :
 659 |         .channelInitializer { channel in
 660 |             channel.pipeline.addHTTPClientHandlers().flatMap {
 661 |                 channel.pipeline.addHandler(repeatedRequestsHandler)
     |                                             `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 662 |             }
 663 |         }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:684:49: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 175 | head.headers.add(name: "Host", value: "localhost")
 176 |
 177 | final class RepeatedRequests: ChannelInboundHandler {
     |             `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
 178 |     typealias InboundIn = HTTPClientResponsePart
 179 |     typealias OutboundOut = HTTPClientRequestPart
     :
 682 |             .channelInitializer { channel in
 683 |                 channel.pipeline.addHTTPClientHandlers().flatMap {
 684 |                     channel.pipeline.addHandler(repeatedRequestsHandler)
     |                                                 `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 685 |                 }
 686 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:684:49: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 175 | head.headers.add(name: "Host", value: "localhost")
 176 |
 177 | final class RepeatedRequests: ChannelInboundHandler {
     |             `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
 178 |     typealias InboundIn = HTTPClientResponsePart
 179 |     typealias OutboundOut = HTTPClientRequestPart
     :
 682 |             .channelInitializer { channel in
 683 |                 channel.pipeline.addHTTPClientHandlers().flatMap {
 684 |                     channel.pipeline.addHandler(repeatedRequestsHandler)
     |                                                 `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 685 |                 }
 686 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:787:66: warning: converting non-sendable function value to '@Sendable (Int, Int) -> Int' may introduce data races
 785 |
 786 |     let futures = (1...10_000).map { i in el1.makeSucceededFuture(i) }
 787 |     return try! EventLoopFuture<Int>.reduce(0, futures, on: el1, +).wait()
     |                                                                  `- warning: converting non-sendable function value to '@Sendable (Int, Int) -> Int' may introduce data races
 788 | }
 789 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:62:27: error: main actor-isolated var 'warning' can not be referenced from a nonisolated context
  28 | // MARK: Test Harness
  29 |
  30 | var warning: String = ""
     |     `- note: var declared here
  31 | assert(
  32 |     {
     :
  58 | let limitSet = CommandLine.arguments.dropFirst()
  59 |
  60 | public func measureAndPrint(desc: String, fn: () throws -> Int) rethrows {
     |             `- note: add '@MainActor' to make global function 'measureAndPrint(desc:fn:)' part of global actor 'MainActor'
  61 |     if limitSet.isEmpty || limitSet.contains(desc) {
  62 |         print("measuring\(warning): \(desc): ", terminator: "")
     |                           `- error: main actor-isolated var 'warning' can not be referenced from a nonisolated context
  63 |         let measurements = try measure(fn)
  64 |         print(measurements.reduce(into: "") { $0.append("\($1), ") })
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:91:27: error: expression is 'async' but is not marked with 'await'
  89 | public func measureAndPrint(desc: String, fn: () async throws -> Int) async rethrows {
  90 |     if limitSet.isEmpty || limitSet.contains(desc) {
  91 |         print("measuring\(warning): \(desc): ", terminator: "")
     |                           |- error: expression is 'async' but is not marked with 'await'
     |                           `- note: property access is 'async'
  92 |         let measurements = try await measure(fn)
  93 |         print(measurements.reduce(into: "") { $0.append("\($1), ") })
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:207:47: warning: capture of 'self' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 175 | head.headers.add(name: "Host", value: "localhost")
 176 |
 177 | final class RepeatedRequests: ChannelInboundHandler {
     |             `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
 178 |     typealias InboundIn = HTTPClientResponsePart
 179 |     typealias OutboundOut = HTTPClientRequestPart
     :
 205 |         if case .end(nil) = reqPart {
 206 |             if self.remainingNumberOfRequests <= 0 {
 207 |                 context.channel.close().map { self.doneRequests }.cascade(to: self.isDonePromise)
     |                                               `- warning: capture of 'self' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 208 |             } else {
 209 |                 self.doneRequests += 1
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:212:58: error: main actor-isolated var 'head' can not be referenced from a nonisolated context
 172 | }
 173 |
 174 | var head = HTTPRequestHead(version: .http1_1, method: .GET, uri: "/perf-test-1")
     |     `- note: var declared here
 175 | head.headers.add(name: "Host", value: "localhost")
 176 |
     :
 201 |     }
 202 |
 203 |     func channelRead(context: ChannelHandlerContext, data: NIOAny) {
     |          `- note: add '@MainActor' to make instance method 'channelRead(context:data:)' part of global actor 'MainActor'
 204 |         let reqPart = Self.unwrapInboundIn(data)
 205 |         if case .end(nil) = reqPart {
     :
 210 |                 self.remainingNumberOfRequests -= 1
 211 |
 212 |                 context.write(Self.wrapOutboundOut(.head(head)), promise: nil)
     |                                                          `- error: main actor-isolated var 'head' can not be referenced from a nonisolated context
 213 |                 context.writeAndFlush(Self.wrapOutboundOut(.end(nil)), promise: nil)
 214 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:615:21: warning: capture of 'self' with non-sendable type 'MeasuringHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 567 |
 568 | try measureAndPrint(desc: "no-net_http1_1k_reqs_1_conn") {
 569 |     final class MeasuringHandler: ChannelDuplexHandler {
     |                 `- note: class 'MeasuringHandler' does not conform to the 'Sendable' protocol
 570 |         typealias InboundIn = Never
 571 |         typealias InboundOut = ByteBuffer
     :
 613 |             if self.remainingNumberOfRequests > 0 {
 614 |                 context.eventLoop.execute {
 615 |                     self.kickOff(channel: channel)
     |                     `- warning: capture of 'self' with non-sendable type 'MeasuringHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 616 |                 }
 617 |             } else {
[477/487] Compiling NIOPerformanceTester resources.swift
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:642:37: warning: capture of 'measuringHandler' with non-sendable type 'MeasuringHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 567 |
 568 | try measureAndPrint(desc: "no-net_http1_1k_reqs_1_conn") {
 569 |     final class MeasuringHandler: ChannelDuplexHandler {
     |                 `- note: class 'MeasuringHandler' does not conform to the 'Sendable' protocol
 570 |         typealias InboundIn = Never
 571 |         typealias InboundOut = ByteBuffer
     :
 640 |         channel.pipeline.addHandler(SimpleHTTPServer())
 641 |     }.flatMap {
 642 |         channel.pipeline.addHandler(measuringHandler, position: .first)
     |                                     `- warning: capture of 'measuringHandler' with non-sendable type 'MeasuringHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 643 |     }.wait()
 644 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:661:45: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 175 | head.headers.add(name: "Host", value: "localhost")
 176 |
 177 | final class RepeatedRequests: ChannelInboundHandler {
     |             `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
 178 |     typealias InboundIn = HTTPClientResponsePart
 179 |     typealias OutboundOut = HTTPClientRequestPart
     :
 659 |         .channelInitializer { channel in
 660 |             channel.pipeline.addHTTPClientHandlers().flatMap {
 661 |                 channel.pipeline.addHandler(repeatedRequestsHandler)
     |                                             `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 662 |             }
 663 |         }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:661:45: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 175 | head.headers.add(name: "Host", value: "localhost")
 176 |
 177 | final class RepeatedRequests: ChannelInboundHandler {
     |             `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
 178 |     typealias InboundIn = HTTPClientResponsePart
 179 |     typealias OutboundOut = HTTPClientRequestPart
     :
 659 |         .channelInitializer { channel in
 660 |             channel.pipeline.addHTTPClientHandlers().flatMap {
 661 |                 channel.pipeline.addHandler(repeatedRequestsHandler)
     |                                             `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 662 |             }
 663 |         }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:684:49: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 175 | head.headers.add(name: "Host", value: "localhost")
 176 |
 177 | final class RepeatedRequests: ChannelInboundHandler {
     |             `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
 178 |     typealias InboundIn = HTTPClientResponsePart
 179 |     typealias OutboundOut = HTTPClientRequestPart
     :
 682 |             .channelInitializer { channel in
 683 |                 channel.pipeline.addHTTPClientHandlers().flatMap {
 684 |                     channel.pipeline.addHandler(repeatedRequestsHandler)
     |                                                 `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 685 |                 }
 686 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:684:49: warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 175 | head.headers.add(name: "Host", value: "localhost")
 176 |
 177 | final class RepeatedRequests: ChannelInboundHandler {
     |             `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
 178 |     typealias InboundIn = HTTPClientResponsePart
 179 |     typealias OutboundOut = HTTPClientRequestPart
     :
 682 |             .channelInitializer { channel in
 683 |                 channel.pipeline.addHTTPClientHandlers().flatMap {
 684 |                     channel.pipeline.addHandler(repeatedRequestsHandler)
     |                                                 `- warning: capture of 'repeatedRequestsHandler' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 685 |                 }
 686 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:787:66: warning: converting non-sendable function value to '@Sendable (Int, Int) -> Int' may introduce data races
 785 |
 786 |     let futures = (1...10_000).map { i in el1.makeSucceededFuture(i) }
 787 |     return try! EventLoopFuture<Int>.reduce(0, futures, on: el1, +).wait()
     |                                                                  `- warning: converting non-sendable function value to '@Sendable (Int, Int) -> Int' may introduce data races
 788 | }
 789 |
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:62:27: error: main actor-isolated var 'warning' can not be referenced from a nonisolated context
  28 | // MARK: Test Harness
  29 |
  30 | var warning: String = ""
     |     `- note: var declared here
  31 | assert(
  32 |     {
     :
  58 | let limitSet = CommandLine.arguments.dropFirst()
  59 |
  60 | public func measureAndPrint(desc: String, fn: () throws -> Int) rethrows {
     |             `- note: add '@MainActor' to make global function 'measureAndPrint(desc:fn:)' part of global actor 'MainActor'
  61 |     if limitSet.isEmpty || limitSet.contains(desc) {
  62 |         print("measuring\(warning): \(desc): ", terminator: "")
     |                           `- error: main actor-isolated var 'warning' can not be referenced from a nonisolated context
  63 |         let measurements = try measure(fn)
  64 |         print(measurements.reduce(into: "") { $0.append("\($1), ") })
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:91:27: error: expression is 'async' but is not marked with 'await'
  89 | public func measureAndPrint(desc: String, fn: () async throws -> Int) async rethrows {
  90 |     if limitSet.isEmpty || limitSet.contains(desc) {
  91 |         print("measuring\(warning): \(desc): ", terminator: "")
     |                           |- error: expression is 'async' but is not marked with 'await'
     |                           `- note: property access is 'async'
  92 |         let measurements = try await measure(fn)
  93 |         print(measurements.reduce(into: "") { $0.append("\($1), ") })
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:207:47: warning: capture of 'self' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 175 | head.headers.add(name: "Host", value: "localhost")
 176 |
 177 | final class RepeatedRequests: ChannelInboundHandler {
     |             `- note: class 'RepeatedRequests' does not conform to the 'Sendable' protocol
 178 |     typealias InboundIn = HTTPClientResponsePart
 179 |     typealias OutboundOut = HTTPClientRequestPart
     :
 205 |         if case .end(nil) = reqPart {
 206 |             if self.remainingNumberOfRequests <= 0 {
 207 |                 context.channel.close().map { self.doneRequests }.cascade(to: self.isDonePromise)
     |                                               `- warning: capture of 'self' with non-sendable type 'RepeatedRequests' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 208 |             } else {
 209 |                 self.doneRequests += 1
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:212:58: error: main actor-isolated var 'head' can not be referenced from a nonisolated context
 172 | }
 173 |
 174 | var head = HTTPRequestHead(version: .http1_1, method: .GET, uri: "/perf-test-1")
     |     `- note: var declared here
 175 | head.headers.add(name: "Host", value: "localhost")
 176 |
     :
 201 |     }
 202 |
 203 |     func channelRead(context: ChannelHandlerContext, data: NIOAny) {
     |          `- note: add '@MainActor' to make instance method 'channelRead(context:data:)' part of global actor 'MainActor'
 204 |         let reqPart = Self.unwrapInboundIn(data)
 205 |         if case .end(nil) = reqPart {
     :
 210 |                 self.remainingNumberOfRequests -= 1
 211 |
 212 |                 context.write(Self.wrapOutboundOut(.head(head)), promise: nil)
     |                                                          `- error: main actor-isolated var 'head' can not be referenced from a nonisolated context
 213 |                 context.writeAndFlush(Self.wrapOutboundOut(.end(nil)), promise: nil)
 214 |             }
/Users/admin/builder/spi-builder-workspace/Sources/NIOPerformanceTester/main.swift:615:21: warning: capture of 'self' with non-sendable type 'MeasuringHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 567 |
 568 | try measureAndPrint(desc: "no-net_http1_1k_reqs_1_conn") {
 569 |     final class MeasuringHandler: ChannelDuplexHandler {
     |                 `- note: class 'MeasuringHandler' does not conform to the 'Sendable' protocol
 570 |         typealias InboundIn = Never
 571 |         typealias InboundOut = ByteBuffer
     :
 613 |             if self.remainingNumberOfRequests > 0 {
 614 |                 context.eventLoop.execute {
 615 |                     self.kickOff(channel: channel)
     |                     `- warning: capture of 'self' with non-sendable type 'MeasuringHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 616 |                 }
 617 |             } else {
[477/487] Linking NIOWebSocketClient
[477/487] Linking NIOFileSystemTour
[477/487] Linking NIOCrashTester
[477/487] Linking NIOWebSocketServer
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
[1/3660] Fetching swift-system
[148/5229] Fetching swift-system, swift-atomics
[2172/20270] Fetching swift-system, swift-atomics, swift-collections
Fetched https://github.com/apple/swift-atomics.git from cache (1.10s)
[4563/18701] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (2.04s)
Fetched https://github.com/apple/swift-collections.git from cache (2.04s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.55s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.3.2 (0.52s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.3 (0.78s)
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.3
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.3.2
BUILD FAILURE 6.0 macosSpm