Skip to content

Conversation

@FranzBusch
Copy link
Member

Motivation

We want to remove any Sendable constraints on iterators since they ought to not be passed between Tasks.

Modification

Explicitly mark the AsyncChain2Sequence to be not Sendable.

Result

Nobody can make this Sendable.

# 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`.
@phausler
Copy link
Member

I think this conditional conformance actually works in all cases; multicast will still maintain that behavior, broadcast will also maintain that behavior too. All that is stored per state is the iterators and derived state from those.

Copy link
Member

@phausler phausler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same conclusion as #212

@phausler phausler merged commit be681c1 into apple:main Oct 14, 2022
@FranzBusch FranzBusch deleted the fb-chain branch October 26, 2022 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants