Adopt Sendable for types in NIOHTTP1 (#2213)

This commit is contained in:
David Nadoba authored and GitHub committed 2022-07-04 00:37:23 -07:00
1 parent f4b0d661c1
commit 0abf7eb929
8 files changed
+66 -11

No files matched your search

@@ -369,6 +369,10 @@ public final class NIOHTTPClientUpgradeHandler: ChannelDuplexHandler, RemovableC
}
}
#if swift(>=5.5) && canImport(_Concurrency)
extension NIOHTTPClientUpgradeHandler: @unchecked Sendable {}
#endif
extension NIOHTTPClientUpgradeHandler {
/// The state of the upgrade handler.
fileprivate enum UpgradeState {