mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
Enable strict concurrency checking for NIOWebSocket ### Motivation: To ensure NIOWebSocket concurrency safety. ### Modifications: * Enable strict concurrency checking in the package manifest. * `NIOWebSocketClientUpgrader._upgrade` private function generic return type is marked as `Sendable` in line with the only method which calls it. * `NIOWebSocketServerUpgrader._upgrade` private function generic return type is marked as `Sendable` in line with the only method which calls it. * `WebSocketOpcode.allCases` public computed variable is replaced with a `let` which manually enumerates the cases instead ### Result: `NIOWebSocket` does not warn of concurrency issues, builds will warn and CI will fail if regressions are introduced.