Skip to content

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
Lukasa pushed a commit to Lukasa/swift-nio that referenced this pull request Nov 22, 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

(cherry picked from commit 6d30ec4)
glbrntt added a commit that referenced this pull request Nov 22, 2024
…#2968) (#2992)

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

(cherry picked from commit 6d30ec4)

Co-authored-by: George Barnett <[email protected]>
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