Files
swift-async-algorithms/Sources/AsyncAlgorithms/AsyncAlgorithms.docc/Guides/Effects.md
T
Franz Busch 6c6ed33514 Remove Sendability from all Iterators (#219)
# Motivation
We have been discussing this a lot in the other PRs, but in general said that an `AsyncIterator` is the connection between the consuming task and the `AsyncSequence`. If an `AsyncIterator` would be `Sendable` then we don't have that relationship anymore. Therefore, no iterator of an `AsyncIterator` should be `Sendable`.

# Modification
Remove all `Sendable` conformances of the iterators even the conditional ones. We can always add them back later.
2022-10-20 09:34:24 -07:00

4.9 KiB

Type Throws Sendability
AsyncAdjacentPairsSequence rethrows Conditional
AsyncBufferedByteIterator throws Not Sendable
AsyncBufferSequence rethrows Conditional
AsyncBufferSequence.Iterator rethrows Not Sendable
AsyncChain2Sequence rethrows Conditional
AsyncChain2Sequence.Iterator rethrows Not Sendable
AsyncChain3Sequence rethrows Conditional
AsyncChain3Sequence.Iterator rethrows Not Sendable
AsyncChannel non-throwing Sendable
AsyncChannel.Iterator non-throwing Not Sendable
AsyncChunkedByGroupSequence rethrows Conditional
AsyncChunkedByGroupSequence.Iterator rethrows Not Sendable
AsyncChunkedOnProjectionSequence rethrows Conditional
AsyncChunkedOnProjectionSequence.Iterator rethrows Not Sendable
AsyncChunksOfCountOrSignalSequence rethrows Sendable
AsyncChunksOfCountOrSignalSequence.Iterator rethrows Not Sendable
AsyncChunksOfCountSequence rethrows Conditional
AsyncChunksOfCountSequence.Iterator rethrows Not Sendable
AsyncCombineLatest2Sequence rethrows Sendable
AsyncCombineLatest2Sequence.Iterator rethrows Not Sendable
AsyncCombineLatest3Sequence rethrows Sendable
AsyncCombineLatest3Sequence.Iterator rethrows Not Sendable
AsyncCompactedSequence rethrows Conditional
AsyncCompactedSequence.Iterator rethrows Not Sendable
AsyncDebounceSequence rethrows Sendable
AsyncDebounceSequence.Iterator rethrows Not Sendable
AsyncExclusiveReductionsSequence rethrows Conditional
AsyncExclusiveReductionsSequence.Iterator rethrows Not Sendable
AsyncInclusiveReductionsSequence rethrows Conditional
AsyncInclusiveReductionsSequence.Iterator rethrows Not Sendable
AsyncInterspersedSequence rethrows Conditional
AsyncInterspersedSequence.Iterator rethrows Not Sendable
AsyncJoinedSequence rethrows Conditional
AsyncJoinedSequence.Iterator rethrows Not Sendable
AsyncLazySequence non-throwing Conditional
AsyncLazySequence.Iterator non-throwing Not Sendable
AsyncLimitBuffer non-throwing Sendable
AsyncMerge2Sequence rethrows Sendable
AsyncMerge2Sequence.Iterator rethrows Not Sendable
AsyncMerge3Sequence rethrows Sendable
AsyncMerge3Sequence.Iterator rethrows Not Sendable
AsyncRemoveDuplicatesSequence rethrows Conditional
AsyncRemoveDuplicatesSequence.Iterator rethrows Not Sendable
AsyncThrottleSequence rethrows Conditional
AsyncThrottleSequence.Iterator rethrows Not Sendable
AsyncThrowingChannel throws Sendable
AsyncThrowingChannel.Iterator throws Not Sendable
AsyncThrowingExclusiveReductionsSequence throws Conditional
AsyncThrowingExclusiveReductionsSequence.Iterator throws Not Sendable
AsyncThrowingInclusiveReductionsSequence throws Conditional
AsyncThrowingInclusiveReductionsSequence.Iterator throws Not Sendable
AsyncTimerSequence non-throwing Sendable
AsyncTimerSequence.Iterator non-throwing Not Sendable
AsyncZip2Sequence rethrows Sendable
AsyncZip2Sequence.Iterator rethrows Not Sendable
AsyncZip3Sequence rethrows Sendable
AsyncZip3Sequence.Iterator rethrows Not Sendable