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

RxScala: Simplify doOnCompleted/Terminate, finallyDo callback usage #1345

Merged
merged 1 commit into from
Jun 12, 2014

Conversation

jbripley
Copy link
Contributor

@jbripley jbripley commented Jun 9, 2014

As mentioned in #1342

@cloudbees-pull-request-builder

RxJava-pull-requests #1255 SUCCESS
This pull request looks good

@zsxwing
Copy link
Member

zsxwing commented Jun 10, 2014

LGTM. Just mark this is a breaking change and should wait until 0.20

@jbripley
Copy link
Contributor Author

Is it really a breaking change? I can't test it fully right now, but both new and old code should work with this new signature?

val o = List("red", "green", "blue").toObservable.doOnTerminate { println("terminate") }
val o = List("red", "green", "blue").toObservable.doOnTerminate(() => println("terminate"))

@zsxwing
Copy link
Member

zsxwing commented Jun 10, 2014

Sorry. Never realized both two have the same signature in the JVM byte code until I used javap to take a look today.

benjchristensen added a commit that referenced this pull request Jun 12, 2014
RxScala: Simplify doOnCompleted/Terminate, finallyDo callback usage
@benjchristensen benjchristensen merged commit 1aa6fc2 into ReactiveX:master Jun 12, 2014
@jbripley jbripley deleted the doblock-simplify branch July 11, 2014 10:24
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.

4 participants