Adopt Sendable for Types in NIOWebSocket (#2217)

This commit is contained in:
David Nadoba authored and GitHub committed 2022-07-05 11:50:55 +01:00
1 parent 927b91a1e7
commit fbe7ef484a
9 files changed
+44 -3

No files matched your search

+3 -1
View File
@@ -12,8 +12,10 @@
//
//===----------------------------------------------------------------------===//
import NIOCore
/// An operation code for a websocket frame.
public struct WebSocketOpcode {
public struct WebSocketOpcode: NIOSendable {
fileprivate let networkRepresentation: UInt8
public static let continuation = WebSocketOpcode(rawValue: 0x0)