mirror of
https://github.com/apple/swift-async-algorithms
synced 2026-11-25 04:27:48 +00:00
Remove Sendable constraint for AsyncChain2Sequence (#213)
# Motivation We want to remove any `Sendable` constraints on iterators since they ought to not be passed between `Task`s. # Modification Explicitly mark the `AsyncChain2Sequence` to be not `Sendable`. # Result Nobody can make this `Sendable`.
This commit is contained in:
1 parent
c21ee2d706
commit
be681c12e3
1 file changed
+3
-1
@@ -80,4 +80,6 @@ extension AsyncChain2Sequence: AsyncSequence {
|
||||
}
|
||||
|
||||
extension AsyncChain2Sequence: Sendable where Base1: Sendable, Base2: Sendable { }
|
||||
extension AsyncChain2Sequence.Iterator: Sendable where Base1.AsyncIterator: Sendable, Base2.AsyncIterator: Sendable { }
|
||||
|
||||
@available(*, unavailable)
|
||||
extension AsyncChain2Sequence.Iterator: Sendable { }
|
||||
Reference in new issue
Block a user