Skip to content

Merge the zip2 and zip3 implementations #221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 20, 2022
Merged

Conversation

FranzBusch
Copy link
Member

Motivation

We recently merged #201 which removed the Sendable constraint of the AsyncIterator from zip. There were some left over comments that we wanted to fix in a follow up. Furthermore, we also can merge the implementations of zip2 and zip3 relatively easily. The merging also aids us in understanding what we need from the variadic generics proposals and allows us to give feedback since zip is non-trivial to implement with variadic generics. Lastly, the merged state machine will be a good base for the overhaul of combineLatest.

Modification

This PR merges the state machines from zip2 and zip3 into a single one. Furthermore, it addresses some of the open feedback from the last PR.

Result

We now have a single state machine which is a good foundation for our changes to combineLatest.

# Motivation
We recently merged apple#201 which removed the `Sendable` constraint of the `AsyncIterator` from `zip`. There were some left over comments that we wanted to fix in a follow up. Furthermore, we also can merge the implementations of `zip2` and `zip3` relatively easily. The merging also aids us in understanding what we need from the variadic generics proposals and allows us to give feedback since `zip` is non-trivial to implement with variadic generics.
Lastly, the merged state machine will be a good base for the overhaul of `combineLatest`.

# Modification
This PR merges the state machines from `zip2` and `zip3` into a single one. Furthermore, it addresses some of the open feedback from the last PR.

# Result
We now have a single state machine which is a good foundation for our changes to `combineLatest`.
@FranzBusch FranzBusch requested a review from phausler October 20, 2022 15:43
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.

Overall this looks spot on; no faults detected 👍

@phausler phausler merged commit 8f5e8ce into apple:main Oct 20, 2022
@FranzBusch FranzBusch deleted the fb-zip-1 branch October 20, 2022 18:49
tcldr pushed a commit to tcldr/swift-async-algorithms that referenced this pull request Nov 3, 2022
# Motivation
We recently merged apple#201 which removed the `Sendable` constraint of the `AsyncIterator` from `zip`. There were some left over comments that we wanted to fix in a follow up. Furthermore, we also can merge the implementations of `zip2` and `zip3` relatively easily. The merging also aids us in understanding what we need from the variadic generics proposals and allows us to give feedback since `zip` is non-trivial to implement with variadic generics.
Lastly, the merged state machine will be a good base for the overhaul of `combineLatest`.

# Modification
This PR merges the state machines from `zip2` and `zip3` into a single one. Furthermore, it addresses some of the open feedback from the last PR.

# Result
We now have a single state machine which is a good foundation for our changes to `combineLatest`.
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