-
Notifications
You must be signed in to change notification settings - Fork 655
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Sendability annotations on SocketOptionProvider (#3034)
### 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.
- Loading branch information
Showing
2 changed files
with
212 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.