Closed thomasnield closed 7 years ago
Binding<String> binding = Flowable.just("Alpha", "Beta", "Gamma")
.to(JavaFxSubscriber::toBinding())
Binding<String> binding = Observable.just("Alpha", "Beta", "Gamma")
.to(JavaFxObserver::toBinding())
I went ahead and made this separation. I'm trying to look for anywhere else the Observable
/Flowable
distinction might need to be reflected in the API design.
FxTransformers
has been split to FxObservableTransformers
and FxFlowableTransformers
. I can't think of a better way to organize that.
I might be able to bring back toLazyBinding()
by leveraging a ConnectableObservable
and calling connect()
on an ObservableValue
's getValue()
call.
I was able to get all the above to work, and have unit tests pass. I'm going to go ahead and do the 2.0.0 release.
In RxJavaFX 2.0, I have set up
JavaFxSubscriber
to havetoBinding()
factories overloaded for bothObservable
andFlowable
. Should I separate these two overloads into two separate static utility classes:JavaFxObserver
andJavaFxSubscriber
? Just to follow RxJava 2.0 terminology?