mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
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 6d30ec4738)
Co-authored-by: George Barnett <gbarnett@apple.com>