mirror of
https://github.com/apple/swift-nio
synced 2026-11-22 04:30:41 +00:00
### Motivation: To ensure NIOHTTP1 concurrency safety. ### Modifications: * Enable strict concurrency checking in the package manifest. * Mark several objects `Sendable` with `@preconcurrency` annotations where they are returned in futures which may execute in arbitrary concurrency domains. * `NIOTypedHTTPClientProtocolUpgrader` * `NIOTypedHTTPClientUpgradeConfiguration` * `NIOUpgradableHTTPServerPipelineConfiguration` * `NIOUpgradableHTTPClientPipelineConfiguration` * `NIOTypedHTTPServerProtocolUpgrader` * `NIOTypedHTTPServerUpgradeConfiguration` * Mark handlers as explicitly not sendable * `NIOTypedHTTPClientUpgradeHandler` * `NIOTypedHTTPServerUpgradeHandler` * Added new Sendable type aliases: * `NIOHTTPClientUpgradeSendableConfiguration` * `NIOHTTPServerUpgradeSendableConfiguration` ### Result: No more concurrency warnings. Builds will warn and CI will fail if regressions are introduced.