-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
subscriber methods with scheduler create ambiguous overloads for Groovy and Java 8 #1116
Comments
@headinthebox and @akarnokd What is the reason for having the This is not something we want to leave as is because it breaks Groovy and Clojure. |
It also makes it slightly less convenient to use a Java 8 lambda expressions because you need to add the target type to the expression. |
Never understood why, this it not in .net ... I would junk that overload. Not even sure what it is supposed to do. |
Looks like a convenience shortcut and we should avoid ambiguity problems with Java 8 while RxJava is in a "allowed" API flux. I vote for removal. |
So do I, let's remove them. |
Would it be worth some tests that reflectively check the public API for any methods that are overloaded with different SAM types (i.e. this problem) to catch this before leaking out again? |
Yes, a test like that would be good. You interesting in doing it? |
Sure, I'll do it. I'll do something for the methods on |
Thanks, and I'll delete the methods shortly. |
- Fixes ReactiveX#1116 - These should never have been added, the subscribeOn operator already provides this functionality
- Fixes ReactiveX/RxJava#1116 - These should never have been added, the subscribeOn operator already provides this functionality
- Fixes ReactiveX/RxJava#1116 - These should never have been added, the subscribeOn operator already provides this functionality
- Fixes ReactiveX/RxJava#1116 - These should never have been added, the subscribeOn operator already provides this functionality
- Fixes ReactiveX/RxJava#1116 - These should never have been added, the subscribeOn operator already provides this functionality
Hi,
In 0.18 there are the following methods:
The “problem” here is that Action1 and Scheduler are both SAM types. This makes closure coercions and lambda expressions ambiguous and requires extra syntax to specify the coercion target type.
Could the
Scheduler
accepting methods be renamed?There are other similar methods of course.
The text was updated successfully, but these errors were encountered: