Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

H2 stream AsyncIterator non-sendable on 5.7 #405

Conversation

rnro
Copy link
Contributor

@rnro rnro commented Jul 4, 2023

Motivation:

Marking NIOHTTP2InboundStreamChannels.AsyncIterator as non-sendable fails to compile on 5.6 however implicitly non-sendable will do, this is a nice-to-have.

Modifications:

Move the non-sendable annotation to only apply >= 5.7

Result:

NIOHTTP2InboundStreamChannels.AsyncIterator is implicitly non-sendable on 5.6

Motivation:

Marking `NIOHTTP2InboundStreamChannels.AsyncIterator` as non-sendable
fails to compile on 5.6 however implicitly non-sendable will do, this is
a nice-to-have.

Modifications:

Move the non-sendable annotation to only apply >= 5.7

Result:

`NIOHTTP2InboundStreamChannels.AsyncIterator` is implicitly non-sendable
on 5.6
@Lukasa Lukasa added the patch-version-bump-only For PRs that when merged will only cause a bump of the patch version, ie. 1.0.x -> 1.0.(x+1) label Jul 4, 2023
@rnro
Copy link
Contributor Author

rnro commented Jul 4, 2023

API breakage checker is wrong

09:52:59 1 breaking change detected in NIOHTTP2:
09:52:59   💔 API breakage: struct NIOHTTP2InboundStreamChannels.AsyncIterator has removed conformance to Sendable

@Lukasa Lukasa merged commit f6f4319 into apple:main Jul 4, 2023
7 of 8 checks passed
@rnro rnro deleted the async_channels_NIOHTTP2InboundStreamChannels_sendability_5_6 branch July 4, 2023 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch-version-bump-only For PRs that when merged will only cause a bump of the patch version, ie. 1.0.x -> 1.0.(x+1)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants