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

Adopt Sendable in NIOEmbedded #2195

Merged
merged 2 commits into from
Jun 17, 2022
Merged

Conversation

dnadoba
Copy link
Member

@dnadoba dnadoba commented Jun 15, 2022

Incremental Sendable adoption.

EmbeddedChannel and EmbeddedEventLoop should not be Sendable. However, they inherit from Channel and EventLoop respectively. Therefore, they need to be Sendable and are already implicitly Sendable. Given these constraints, we can’t mark EmbeddedChannel and EmbeddedEventLoop as non-Sendable.

`EmbeddedChannel` and `EmbeddedEventLoop` should not be `Sendable`. However, they inherit from `Channel` and `EventLoop` respectively. Therfore, they need to be `Sendable` (and are already implcitily `Sendable`. Given these constraints, we can’t mark `EmbeddedChannel` and `EmbeddedEventLoop` as non-Sendable.
@dnadoba dnadoba added the 🔼 needs-minor-version-bump For PRs that when merged cause a bump of the minor version, ie. 1.x.0 -> 1.(x+1).0 label Jun 15, 2022
@Lukasa
Copy link
Contributor

Lukasa commented Jun 16, 2022

The compile error on 5.5 is real and needs to be fixed.

@dnadoba dnadoba enabled auto-merge (squash) June 17, 2022 13:31
@dnadoba dnadoba merged commit f554552 into apple:main Jun 17, 2022
@dnadoba dnadoba deleted the dn-sendable-embedded branch July 5, 2022 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔼 needs-minor-version-bump For PRs that when merged cause a bump of the minor version, ie. 1.x.0 -> 1.(x+1).0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants