-
Notifications
You must be signed in to change notification settings - Fork 111
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
Update to using RxJava 1.0.11 #166
Conversation
…ervable.scala - Rename some methods to match RxJava method names, now that they're not implicit imports
… in RxJava 1.0.10 and 1.0.11 - flatMapWithMaxConcurrent - onBackpressureLatest - usingWithDisposeEagerly
…methods added in RxJava 1.0.10 and 1.0.11 - flatMapWithMaxConcurrent => flatMap - usingWithDisposeEagerly => using
@jbripley I sent jbripley#1 to fix some issues in this PR. Could you take a look and merge it? |
See http://code.iamzsx.me/RxScala/#rx.lang.scala.Observable for the experimental/beta labels. |
Since Subject.getValues returns `Seq`, we can make it return `Seq[T]` rather than `Seq[AnyRef]`
|
@zsxwing nice work for the experimental/beta labels, but I guess you did not yet add all? For instance, |
@samuelgruetter updated the rest methods |
Update RxScala ReactiveX#166
…WithMaxConcurrent
@samuelgruetter I agree that @zsxwing I agree with your changes and the Beta/Experimental graphical Scaladoc annotations are really nice. Some of the BlockingObservable Scaladoc cleanup doesn't really have anything to with the RxJava update, but I'll let that slide :) I'm in no hurry to add |
I actually meant to put the
Yes, let's leave that out. |
I don't think we really need it. Let's leave it out until someone requires it. |
It is horrible design even in Java ;-) |
@jbripley another pr to make the deprecated messages more friendly: jbripley#2
+1. @jbripley I also propose that let's keep the old methods and deprecate them if possible. Since we can just deprecate them and maintain the backward compatibility, let's do it in 0.25.0. So that the users will have enough time to update their codes. We can remove them in 0.26.0. |
@samuelgruetter @zsxwing Ok, I'll change all flatMap related methods that use maxConcurrent to put it as first parameter and deprecate the old ones. Do we prefer ex. |
The decision whether to choose
|
Update the deprecated messages
@zsxwing I spent like an hour trying to get the deprecated flatMapWithMaxConcurrent Scaladoc links to work, but couldn't figure it out. Could you take a look? |
@jbripley, see jbripley#3 |
Fix the deprecated messages for 'flatMap'
@jbripley jbripley#4 this is my last suggestion for this PR. Others LGTM. @samuelgruetter could you take a final look? |
@zsxwing so you prefer the uncurried version, and would consider currying only if it improves type inference? I'm not (yet) sure whether I find the curried version nicer: Compare .flatMap(
maxConcurrent = 10,
v => ...
) to
|
@samuelgruetter I like all flatMap methods are consistent. We cannot use currying for the following methods because of the conflicts def flatMap[R](maxConcurrent: Int, f: T => Observable[R]): Observable[R]
def flatMap[R](maxConcurrent: Int, onNext: T => Observable[R], onError: Throwable => Observable[R], onCompleted: () => Observable[R]): Observable[R] So I would like to use |
Update the signature of flatMapWith and fix the Subject doc
@zsxwing you're right, I forgot that overload resolution only looks at the first parameter list. LGTM. |
Thank you :) |
Major changes:
Issues:
Which does not compile:
using(=> Resource)(Resource => Observable[T], Resource => Unit, Boolean)
=>usingWithDisposeEagerly
andflatMapWith(T => Observable[U])((T, U) => R)(Int)
=>flatMapWithMaxConcurrent
, needed to be renamed to not conflict with existing methods.