mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-28 05:14:25 +00:00
Remove #if compiler(>=5.5) (#357)
This commit is contained in:
1 parent
00576e6f1e
commit
a89ddbf0af
5 files changed
+11
-25
No files matched your search
@@ -295,12 +295,9 @@ extension HTTP2Frame.FramePayload {
|
||||
}
|
||||
}
|
||||
|
||||
// The `@unchecked` is needed because at the time of writing `NIOCore` didn't have `Sendable` support.
|
||||
#if swift(>=5.5) && canImport(_Concurrency)
|
||||
extension HTTP2Frame.FramePayload: @unchecked Sendable {
|
||||
/// ``HTTP2Frame/FramePayload/Data`` and therefore ``HTTP2Frame/FramePayload`` and ``HTTP2Frame`` are actually **not** `Sendable`,
|
||||
/// because ``HTTP2Frame/FramePayload/Data/data`` stores `IOData` which is not and can not be `Sendable`.
|
||||
/// Marking them non-Sendable would sadly be API breaking.
|
||||
extension HTTP2Frame.FramePayload: @unchecked Sendable {}
|
||||
extension HTTP2Frame.FramePayload.Data: @unchecked Sendable {}
|
||||
|
||||
}
|
||||
extension HTTP2Frame.FramePayload.Data: @unchecked Sendable {
|
||||
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user