mirror of
https://github.com/apple/swift-nio
synced 2026-11-30 05:28:44 +00:00
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:
1 parent
f7c3c45df4
commit
f554552edf
1 file changed
+5
@@ -761,3 +761,8 @@ extension EmbeddedChannel {
|
||||
return SynchronousOptions(channel: self)
|
||||
}
|
||||
}
|
||||
|
||||
#if swift(>=5.6)
|
||||
@available(*, unavailable)
|
||||
extension EmbeddedChannel.SynchronousOptions: Sendable {}
|
||||
#endif
|
||||
Reference in new issue
Block a user