Skip to content

Rework combineLatest to remove the Sendable constraint on the base iterator #228

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
Nov 16, 2022

Conversation

FranzBusch
Copy link
Member

Motivation

This follows the recent rework of the merge and zip algorithms where we dropped the Sendable constraint on the BaseX.AsyncIterator. This PR now removes the same constraint on combineLatest.

Modification

This PR overhauls the implementation of combineLatest with the goal of changing these things:

  • Drop the Sendable constraint of the base AsyncIterators
  • Only create a single Task

Result

combineLatest now doesn't require the base AsyncIterator to be Sendable

…e iterator

# Motivation
This follows the recent rework of the `merge` and `zip` algorithms where we dropped the `Sendable` constraint on the `BaseX.AsyncIterator`. This PR now removes the same constraint on `combineLatest`.

# Modification
This PR overhauls the implementation of `combineLatest` with the goal of changing these things:
- Drop the `Sendable` constraint of the base `AsyncIterator`s
- Only create a single `Task`

# Result
`combineLatest` now doesn't require the base `AsyncIterator` to be `Sendable`
@FranzBusch FranzBusch marked this pull request as ready for review November 7, 2022 13:39
@FranzBusch FranzBusch requested a review from phausler November 7, 2022 13:39
@phausler phausler merged commit ae26222 into apple:main Nov 16, 2022
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.

3 participants