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

Handle Sendability of RemovableChannelHandler #2953

Merged
merged 7 commits into from
Oct 29, 2024

Conversation

Lukasa
Copy link
Contributor

@Lukasa Lukasa commented Oct 28, 2024

Motivation:

RemovableChannelHandlers have a large API surface in NIOCore. That API surface is a bit awkward with regard to strict concurrency, and needs some cleanup.

Modifications:

This patch adds some new API that is necessary to safely work with RemovableChannelHandlers, deprecates some API that cannot plausibly be used, and cleans up some other parts of the API.

Result:

Easier to work with RemovableChannelHandlers

@Lukasa Lukasa added the semver/minor Adds new public API. label Oct 28, 2024
Motivation:

RemovableChannelHandlers have a large API surface in NIOCore.
That API surface is a bit awkward with regard to strict concurrency,
and needs some cleanup.

Modifications:

This patch adds some new API that is necessary to safely work with
RemovableChannelHandlers, deprecates some API that cannot plausibly
be used, and cleans up some other parts of the API.

Result:

Easier to work with RemovableChannelHandlers
@Lukasa Lukasa force-pushed the cb-strict-concurrency-removable-handler branch from 40cdd33 to 803eac6 Compare October 28, 2024 16:11
@Lukasa
Copy link
Contributor Author

Lukasa commented Oct 29, 2024

Merging over the API breakage, which is expected and safe.

@Lukasa Lukasa merged commit 411c2c5 into apple:main Oct 29, 2024
40 of 43 checks passed
@Lukasa Lukasa deleted the cb-strict-concurrency-removable-handler branch October 29, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/minor Adds new public API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants