mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
Motivation: The `NIOWebSocketServerUpgrader` is marked as not being `Sendable`, but it has no mutable state and makes no assumptions about the event loop it is invoked on, so it should be `Sendable`. The two user-provided callbacks which are injected in `init` are marked as being `Sendable` but require Swift 5.7 to express this safely. Modifications: - Add `@unchecked Sendable` conformance to `NIOWebSocketServerUpgrader` Result: - `NIOWebSocketServerUpgrader` is Sendable.