Skip to content

Conversation

Lukasa
Copy link
Contributor

@Lukasa Lukasa commented Dec 18, 2024

Motivation:

SocketOptionProvider is used to apply a number of socket options. As part of using it in NIOPosix, it became apparent that several necessary sendability annotations are missing. Let's add those.

Modifications:

  • Add Sendable constraints with @preconcurrency to SocketOptionProvider.
  • Update the BaseSocketChannel conformance to match

Result:

Tighter Sendable constraints on SocketOptionProvider.

@Lukasa Lukasa added the 🆕 semver/minor Adds new public API. label Dec 18, 2024
@Lukasa Lukasa force-pushed the cb-sendability-socket-option-provider branch 3 times, most recently from 9dd1f38 to ac36011 Compare January 8, 2025 15:52
@Lukasa Lukasa force-pushed the cb-sendability-socket-option-provider branch from ac36011 to 0895924 Compare January 9, 2025 10:30
@Lukasa
Copy link
Contributor Author

Lukasa commented Jan 13, 2025

Merging over API breakage failure, which is wrong.

@Lukasa Lukasa merged commit 7bc19dc into apple:main Jan 13, 2025
33 of 35 checks passed
@Lukasa Lukasa deleted the cb-sendability-socket-option-provider branch January 13, 2025 09:58
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