You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this example you can see where the warnings happens. addHandlers method now requires the PipelineHandlers to be sendable. But these handlers forbid conformance to sendable.
This is intentional. The pipeline modification method you’re using actually sends these handlers across concurrency domains, so the concern is warranted. If you’re on the event loop already, which you are in that context, use channel.pipeline.syncOperations.addHandlers, which will not warn.
Expected behavior
No concurrency warnings in addHandlers method with ByteToMessage and MessageToByte handlers.
Actual behavior
Adding these handlers to a channel pipeline produces warnings.
Steps to reproduce
If possible, minimal yet complete reproducer code (or URL to code)
https://github.com/flexlixrup/pulsar-client-swift/blob/1c93824e422ceb9343a632fec2c0258fdc6a5908/Sources/Pulsar/PulsarClient/PulsarClient.swift#L91-L94
In this example you can see where the warnings happens.
addHandlers
method now requires the PipelineHandlers to be sendable. But these handlers forbid conformance to sendable.SwiftNIO version/commit hash
NIO 2.78.0, the issue is due to 1e4fde1
System & version information
swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1) Target: arm64-apple-macosx15.0
The text was updated successfully, but these errors were encountered: