-
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
Scala Publish #640
Comments
When I came up with this There's a similar situation with |
@headinthebox @samuelgruetter Has this been resolved? |
Should be resolved in #1160 |
The current Scala bindings for publish are as follows:
def publish: (() => Subscription, Observable[T]) = {
val javaCO = asJavaObservable.publish()
(() => javaCO.connect(), toScalaObservableT)
}
This has a couple of downsides
It forces every caller has to invent names for the two pieces, whereas they already have names given by the callee.
val (foo, bar) = baz.publish()
vs
val bar = baz.publish()
bar.subscribe(..)
bar.connect
If I don't hear anyone screaming loudly, I am going to change this to mimic the Java signature.
The text was updated successfully, but these errors were encountered: