Skip to content

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