mirror of
https://github.com/apple/swift-async-algorithms
synced 2026-11-30 04:58:44 +00:00
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.
This commit is contained in:
1 parent
2cfb16691a
commit
6c6ed33514
16 files changed
+28
-57
No files matched your search
@@ -1,59 +1,59 @@
|
||||
| Type | Throws | Sendability |
|
||||
|-----------------------------------------------------|--------------|-------------|
|
||||
| `AsyncAdjacentPairsSequence` | rethrows | Conditional |
|
||||
| `AsyncBufferedByteIterator` | throws | Sendable |
|
||||
| `AsyncBufferedByteIterator` | throws | Not Sendable|
|
||||
| `AsyncBufferSequence` | rethrows | Conditional |
|
||||
| `AsyncBufferSequence.Iterator` | rethrows | Conditional |
|
||||
| `AsyncBufferSequence.Iterator` | rethrows | Not Sendable|
|
||||
| `AsyncChain2Sequence` | rethrows | Conditional |
|
||||
| `AsyncChain2Sequence.Iterator` | rethrows | Conditional |
|
||||
| `AsyncChain2Sequence.Iterator` | rethrows | Not Sendable|
|
||||
| `AsyncChain3Sequence` | rethrows | Conditional |
|
||||
| `AsyncChain3Sequence.Iterator` | rethrows | Conditional |
|
||||
| `AsyncChain3Sequence.Iterator` | rethrows | Not Sendable|
|
||||
| `AsyncChannel` | non-throwing | Sendable |
|
||||
| `AsyncChannel.Iterator` | non-throwing | Sendable |
|
||||
| `AsyncChannel.Iterator` | non-throwing | Not Sendable|
|
||||
| `AsyncChunkedByGroupSequence` | rethrows | Conditional |
|
||||
| `AsyncChunkedByGroupSequence.Iterator` | rethrows | Conditional |
|
||||
| `AsyncChunkedByGroupSequence.Iterator` | rethrows | Not Sendable|
|
||||
| `AsyncChunkedOnProjectionSequence` | rethrows | Conditional |
|
||||
| `AsyncChunkedOnProjectionSequence.Iterator` | rethrows | Conditional |
|
||||
| `AsyncChunkedOnProjectionSequence.Iterator` | rethrows | Not Sendable|
|
||||
| `AsyncChunksOfCountOrSignalSequence` | rethrows | Sendable |
|
||||
| `AsyncChunksOfCountOrSignalSequence.Iterator` | rethrows | Sendable |
|
||||
| `AsyncChunksOfCountOrSignalSequence.Iterator` | rethrows | Not Sendable|
|
||||
| `AsyncChunksOfCountSequence` | rethrows | Conditional |
|
||||
| `AsyncChunksOfCountSequence.Iterator` | rethrows | Conditional |
|
||||
| `AsyncChunksOfCountSequence.Iterator` | rethrows | Not Sendable|
|
||||
| `AsyncCombineLatest2Sequence` | rethrows | Sendable |
|
||||
| `AsyncCombineLatest2Sequence.Iterator` | rethrows | Sendable |
|
||||
| `AsyncCombineLatest2Sequence.Iterator` | rethrows | Not Sendable|
|
||||
| `AsyncCombineLatest3Sequence` | rethrows | Sendable |
|
||||
| `AsyncCombineLatest3Sequence.Iterator` | rethrows | Sendable |
|
||||
| `AsyncCombineLatest3Sequence.Iterator` | rethrows | Not Sendable|
|
||||
| `AsyncCompactedSequence` | rethrows | Conditional |
|
||||
| `AsyncCompactedSequence.Iterator` | rethrows | Conditional |
|
||||
| `AsyncCompactedSequence.Iterator` | rethrows | Not Sendable|
|
||||
| `AsyncDebounceSequence` | rethrows | Sendable |
|
||||
| `AsyncDebounceSequence.Iterator` | rethrows | Sendable |
|
||||
| `AsyncDebounceSequence.Iterator` | rethrows | Not Sendable|
|
||||
| `AsyncExclusiveReductionsSequence` | rethrows | Conditional |
|
||||
| `AsyncExclusiveReductionsSequence.Iterator` | rethrows | Conditional |
|
||||
| `AsyncExclusiveReductionsSequence.Iterator` | rethrows | Not Sendable|
|
||||
| `AsyncInclusiveReductionsSequence` | rethrows | Conditional |
|
||||
| `AsyncInclusiveReductionsSequence.Iterator` | rethrows | Conditional |
|
||||
| `AsyncInclusiveReductionsSequence.Iterator` | rethrows | Not Sendable|
|
||||
| `AsyncInterspersedSequence` | rethrows | Conditional |
|
||||
| `AsyncInterspersedSequence.Iterator` | rethrows | Conditional |
|
||||
| `AsyncInterspersedSequence.Iterator` | rethrows | Not Sendable|
|
||||
| `AsyncJoinedSequence` | rethrows | Conditional |
|
||||
| `AsyncJoinedSequence.Iterator` | rethrows | Conditional |
|
||||
| `AsyncJoinedSequence.Iterator` | rethrows | Not Sendable|
|
||||
| `AsyncLazySequence` | non-throwing | Conditional |
|
||||
| `AsyncLazySequence.Iterator` | non-throwing | Conditional |
|
||||
| `AsyncLazySequence.Iterator` | non-throwing | Not Sendable|
|
||||
| `AsyncLimitBuffer` | non-throwing | Sendable |
|
||||
| `AsyncMerge2Sequence` | rethrows | Sendable |
|
||||
| `AsyncMerge2Sequence.Iterator` | rethrows | Sendable |
|
||||
| `AsyncMerge2Sequence.Iterator` | rethrows | Not Sendable|
|
||||
| `AsyncMerge3Sequence` | rethrows | Sendable |
|
||||
| `AsyncMerge3Sequence.Iterator` | rethrows | Sendable |
|
||||
| `AsyncMerge3Sequence.Iterator` | rethrows | Not Sendable|
|
||||
| `AsyncRemoveDuplicatesSequence` | rethrows | Conditional |
|
||||
| `AsyncRemoveDuplicatesSequence.Iterator` | rethrows | Conditional |
|
||||
| `AsyncRemoveDuplicatesSequence.Iterator` | rethrows | Not Sendable|
|
||||
| `AsyncThrottleSequence` | rethrows | Conditional |
|
||||
| `AsyncThrottleSequence.Iterator` | rethrows | Conditional |
|
||||
| `AsyncThrottleSequence.Iterator` | rethrows | Not Sendable|
|
||||
| `AsyncThrowingChannel` | throws | Sendable |
|
||||
| `AsyncThrowingChannel.Iterator` | throws | Sendable |
|
||||
| `AsyncThrowingChannel.Iterator` | throws | Not Sendable|
|
||||
| `AsyncThrowingExclusiveReductionsSequence` | throws | Conditional |
|
||||
| `AsyncThrowingExclusiveReductionsSequence.Iterator` | throws | Conditional |
|
||||
| `AsyncThrowingExclusiveReductionsSequence.Iterator` | throws | Not Sendable|
|
||||
| `AsyncThrowingInclusiveReductionsSequence` | throws | Conditional |
|
||||
| `AsyncThrowingInclusiveReductionsSequence.Iterator` | throws | Conditional |
|
||||
| `AsyncThrowingInclusiveReductionsSequence.Iterator` | throws | Not Sendable|
|
||||
| `AsyncTimerSequence` | non-throwing | Sendable |
|
||||
| `AsyncTimerSequence.Iterator` | non-throwing | Sendable |
|
||||
| `AsyncTimerSequence.Iterator` | non-throwing | Not Sendable|
|
||||
| `AsyncZip2Sequence` | rethrows | Sendable |
|
||||
| `AsyncZip2Sequence.Iterator` | rethrows | Sendable |
|
||||
| `AsyncZip2Sequence.Iterator` | rethrows | Not Sendable|
|
||||
| `AsyncZip3Sequence` | rethrows | Sendable |
|
||||
| `AsyncZip3Sequence.Iterator` | rethrows | Sendable |
|
||||
| `AsyncZip3Sequence.Iterator` | rethrows | Not Sendable|
|
||||
Reference in new issue
Block a user