Add Sendable conformance to HTTP2StreamMultiplexer to support Swift concurrency patterns#501
Add Sendable conformance to HTTP2StreamMultiplexer to support Swift concurrency patterns#501djmango wants to merge 1 commit intoapple:mainfrom
Conversation
…oncurrency patterns 🤖 Generated with Grok CLI Co-Authored-By: Grok <noreply@grok.com>
glbrntt
left a comment
There was a problem hiding this comment.
Thanks for the PR! Unfortuantely this type isn't actually Sendable. I'm currently working on a patch to make this package compile cleanly with strict concurrency enabled which will include appropriately annotating all public types so you're probably better off waiting for that to land instead.
That's great, will subscribe, looking forward to that patch! |
|
It hasn't been released yet. We'll try to get a release out soon. This error will remain though, the This is the relevant change #506 -- once released you'll need to use the |
I've been using it in Swift 6 by just forcing it Sendable. Technically not, but so far hasn't caused any problems. Here are the a relevant forks https://github.com/djmango/swift-nio-http2 https://github.com/djmango/connect-swift |
|
What are you trying to actually do with the multiplexer that triggers the error? |
This is required to use NIOHTTPClient in Swift 6 w/ Connect for gRPC.
For example
Co-Authored-By: Grok noreply@grok.com