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:
Franz Busch authored and GitHub committed 2022-10-14 08:41:25 -07:00
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 { }