Adopt Sendable in NIOEmbedded (#2195)

`EmbeddedChannel` and `EmbeddedEventLoop` should not be `Sendable`. However, they inherit from `Channel` and `EventLoop` respectively. Therfore, they need to be `Sendable` (and are already implcitily `Sendable`. Given these constraints, we can’t mark `EmbeddedChannel` and `EmbeddedEventLoop` as non-Sendable.
This commit is contained in:
David Nadoba authored and GitHub committed 2022-06-17 06:38:06 -07:00
1 parent f7c3c45df4
commit f554552edf
1 file changed
+5
+5
View File
@@ -761,3 +761,8 @@ extension EmbeddedChannel {
return SynchronousOptions(channel: self)
}
}
#if swift(>=5.6)
@available(*, unavailable)
extension EmbeddedChannel.SynchronousOptions: Sendable {}
#endif