Build Information
Failed to build swift-nio, reference main (537c3f
), with Swift 6.0 for macOS (SPM) on 6 Nov 2024 15:04:36 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
229 | }.hop(to: context.eventLoop)
230 | .whenComplete { result in
/Users/admin/builder/spi-builder-workspace/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/NIOHTTP1/NIOTypedHTTPClientUpgradeHandler.swift:231:17: warning: capture of 'self' with non-sendable type 'NIOTypedHTTPClientUpgradeHandler<UpgradeResult>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
[392/432] Compiling NIOHTTP1 NIOTypedHTTPServerUpgraderStateMachine.swift
[393/432] Compiling NIOHTTP1 ByteCollectionUtils.swift
[394/432] Compiling NIOHTTP1 HTTPDecoder.swift
[395/432] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[396/432] Compiling NIOHTTP1 HTTPPipelineSetup.swift
/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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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/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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
[405/436] 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1370:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1368 | extension ChannelPipeline {
1369 | /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1370 | public enum Position {
| `- note: enum 'Position' does not conform to the 'Sendable' protocol
1371 | /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1372 | 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:1370:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1368 | extension ChannelPipeline {
1369 | /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1370 | public enum Position {
| `- note: enum 'Position' does not conform to the 'Sendable' protocol
1371 | /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1372 | 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:1370:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1368 | extension ChannelPipeline {
1369 | /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1370 | public enum Position {
| `- note: enum 'Position' does not conform to the 'Sendable' protocol
1371 | /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1372 | 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:1370:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1368 | extension ChannelPipeline {
1369 | /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1370 | public enum Position {
| `- note: enum 'Position' does not conform to the 'Sendable' protocol
1371 | /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1372 | 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:1370:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1368 | extension ChannelPipeline {
1369 | /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1370 | public enum Position {
| `- note: enum 'Position' does not conform to the 'Sendable' protocol
1371 | /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1372 | 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:1370:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1368 | extension ChannelPipeline {
1369 | /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1370 | public enum Position {
| `- note: enum 'Position' does not conform to the 'Sendable' protocol
1371 | /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1372 | 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:1370:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1368 | extension ChannelPipeline {
1369 | /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1370 | public enum Position {
| `- note: enum 'Position' does not conform to the 'Sendable' protocol
1371 | /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1372 | 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:1370:17: note: enum 'Position' does not conform to the 'Sendable' protocol
1368 | extension ChannelPipeline {
1369 | /// A `Position` within the `ChannelPipeline` used to insert handlers into the `ChannelPipeline`.
1370 | public enum Position {
| `- note: enum 'Position' does not conform to the 'Sendable' protocol
1371 | /// The first `ChannelHandler` -- the front of the `ChannelPipeline`.
1372 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
[410/436] Emitting module _NIOFileSystemFoundationCompat
[411/436] Compiling NIOFileSystem Exports.swift
[412/436] Emitting module NIOFileSystem
[413/458] Compiling _NIOFileSystemFoundationCompat Date+FileInfo.swift
[414/458] 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 |
[415/459] 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)
[416/459] Compiling NIOHTTP1Client main.swift
[417/459] Emitting module NIOHTTP1Client
[418/459] Compiling NIOWebSocket WebSocketFrameDecoder.swift
[419/459] Compiling NIOWebSocket WebSocketFrameEncoder.swift
[420/459] 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
[421/459] Compiling NIOAsyncAwaitDemo main.swift
[422/459] Compiling NIOAsyncAwaitDemo FullRequestResponse.swift
[423/459] Emitting module NIOAsyncAwaitDemo
[424/459] Compiling NIOAsyncAwaitDemo AsyncChannelIO.swift
[424/459] Write Objects.LinkFileList
[426/459] Compiling NIOWebSocket NIOWebSocketServerUpgrader.swift
[427/459] Compiling NIOWebSocket NIOWebSocketFrameAggregator.swift
[427/459] Write Objects.LinkFileList
[429/459] Compiling NIOWebSocket NIOWebSocketClientUpgrader.swift
[430/459] Compiling NIOWebSocket SHA1.swift
[431/459] Compiling NIOWebSocket WebSocketErrorCodes.swift
[432/459] Compiling NIOWebSocket WebSocketFrame.swift
[433/459] 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 |
[434/459] Compiling NIOTestUtils ByteToMessageDecoderVerifier.swift
[435/459] Emitting module NIOTestUtils
[436/459] 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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 | ///
[437/459] Compiling NIOTestUtils EventCounterHandler.swift
[438/496] 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | 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:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
[438/496] Write Objects.LinkFileList
[439/496] Linking NIOHTTP1Client
[440/496] Applying NIOHTTP1Client
[441/496] Linking NIOAsyncAwaitDemo
[443/496] Compiling NIOCrashTester CrashTests+System.swift
[444/496] Compiling NIOCrashTester CrashTests+HTTP.swift
[444/496] Applying NIOAsyncAwaitDemo
[446/496] Compiling NIOCrashTester CrashTests+LoopBound.swift
[447/496] Compiling NIOWebSocketClient Client.swift
[448/496] Emitting module NIOWebSocketClient
[449/496] 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 | }
[450/496] 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 | }
[450/498] Write Objects.LinkFileList
[452/498] Compiling NIOPerformanceTester NIOAsyncSequenceProducerBenchmark.swift
[453/498] Compiling NIOPerformanceTester NIOAsyncWriterSingleWritesBenchmark.swift
[454/498] Compiling NIOCrashTester CrashTests+ByteBuffer.swift
[455/498] 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 | }
[456/498] 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 | }
[457/498] 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 | }
[458/498] 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 | }
[459/498] Compiling NIOPerformanceTester CircularBufferIntoByteBufferBenchmark.swift
[460/498] Compiling NIOPerformanceTester DeadlineNowBenchmark.swift
[461/498] Compiling NIOPerformanceTester ChannelPipelineBenchmark.swift
[462/498] Compiling NIOPerformanceTester CircularBufferCopyToArrayBenchmark.swift
[463/498] Compiling NIOFileSystemTour NIOFileSystemTour.swift
[464/498] Emitting module NIOFileSystemTour
[465/498] 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(),
[465/498] Write Objects.LinkFileList
[466/498] Linking NIOHTTP1Server
[468/498] Compiling NIOPerformanceTester WebSocketFrameDecoderBenchmark.swift
[469/498] Compiling NIOPerformanceTester WebSocketFrameEncoderBenchmark.swift
[469/498] Applying NIOHTTP1Server
[471/498] Compiling NIOCrashTester CrashTests+Strict.swift
[472/498] Compiling NIOCrashTester OutputGrepper.swift
[473/498] 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(),
[473/498] Write Objects.LinkFileList
[475/498] Compiling NIOPerformanceTester Benchmark.swift
[476/498] Compiling NIOPerformanceTester ByteBufferViewContainsBenchmark.swift
[477/498] Compiling NIOPerformanceTester ByteBufferViewCopyToArrayBenchmark.swift
[478/498] Emitting module NIOWebSocketServer
[479/498] Compiling NIOPerformanceTester ByteBufferViewIteratorBenchmark.swift
[480/498] Compiling NIOPerformanceTester ByteBufferWriteMultipleBenchmarks.swift
[481/498] Compiling NIOPerformanceTester ByteToMessageDecoderDecodeManySmallsBenchmark.swift
[482/498] Compiling NIOWebSocketServer Server.swift
[482/498] Write Objects.LinkFileList
[484/498] 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
[485/498] 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
[486/498] 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 {
[487/498] 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 {
[488/498] 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 |
[488/498] Linking NIOCrashTester
[488/498] Linking NIOFileSystemTour
[488/498] Linking NIOWebSocketClient
[488/498] Linking NIOWebSocketServer
BUILD FAILURE 6.0 macosSpm