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

Remove sendable checking from NIOLock and NIOLockedValueBox #2968

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

glbrntt
Copy link
Contributor

@glbrntt glbrntt commented Nov 7, 2024

Motivation:

ManagedBuffer is marked as explicitly not sendable on Swift nightly builds. NIOLock and NIOLockedValueBox used a type derived from ManagedBuffer and must be Sendable. Currently the derived type is marked as @unchecked Sendable. However on nightly toolchains this now conflicts with being explicitly not Sendable.

Modifications:

  • Remove Sendable checking on NIOLock and NIOLockedValueBox

Result:

Fewer warnings

Motivation:

ManagedBuffer is marked as explicitly not sendable on Swift nightly
builds. NIOLock and NIOLockedValueBox used a type derived from
ManagedBuffer and must be Sendable. Currently the derived type is marked
as `@unchecked Sendable`. However on nightly toolchains this now
conflicts with being explicitly not Sendable.

Modifications:

- Remove Sendable checking on NIOLock and NIOLockedValueBox

Result:

Fewer warnings
@glbrntt glbrntt added the semver/patch No public API change. label Nov 7, 2024
@glbrntt glbrntt requested a review from Lukasa November 7, 2024 14:03
@Lukasa Lukasa merged commit 6d30ec4 into apple:main Nov 7, 2024
42 of 44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants