Skip to content
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

Provide Infallible versions of combineLatest without resultSelector requirement #2508

Merged
merged 2 commits into from May 11, 2023

Conversation

hallee
Copy link
Contributor

@hallee hallee commented Apr 11, 2023

Observable has helper extensions for combineLatest that implement a basic default resultSelector which makes combineLatest much more ergonomic to work with.

This PR implements Infallible versions of these helpers.

@@ -29,6 +29,24 @@ extension Infallible {
}
}

extension InfallibleType where Element == Any {
Copy link
Member

Choose a reason for hiding this comment

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

Is this constraint actually needed? Can't you just extend all InfallibleTypes ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@freak4pc Probably not, I just copied this from the Observable version, which has the constraint. Removing.

@freak4pc freak4pc merged commit 9e182e6 into ReactiveX:main May 11, 2023
12 of 18 checks passed
GalBerezansky pushed a commit to GalBerezansky/RxSwift that referenced this pull request Jul 23, 2023
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.

None yet

2 participants