Comments (12)
I think for RxJavaFX 2.0, I am going to have the factories valuesOf()
and nullableValuesOf()
, which will behave opposite to RxJavaFX 1.0's valuesOf()
and nonNullValuesOf()
.
The valuesOf()
in 2.0 will not emit null values and simply ignore them. nullableValuesOf()
will yield an Observable<Optional<T>>
. I imagine we want to avoid working with Optionals as much as possible, and in most cases we will not want nulls anyway.
I believe this will be the smoothest transition so folks do not suddenly find valuesOf()
emitting Optionals when they refactor to 2.0. I'll leave RxJavaFX 1.0 alone with the current factories as I see no good reason to have them mirror 2.0's factories. I do not want to cause severe breaking changes where folks may be depending on valuesOf()
to emit nulls anyway.
from rxjavafx.
Sorry, long day. I read this backwards. Flowable supports bakpressure. Observable does not. This therefore will require little change thankfully.
from rxjavafx.
2.x branch has been created. Some refactoring has been done although still a lot of work left to resolve compile errors.
from rxjavafx.
RxJava2 has been released so this probably needs to become priority at some point. Unfortunately right now I'm busy with several projects, and while I hate creating contingencies I can't personally prioritize this until RxJava-JDBC and RxJava-Extras gets ported to RxJava2. I will get to this likely once that happens, but if anybody wants to contribute porting this to RxJava2 I will not hesitate to accept help.
from rxjavafx.
For handling lack of nullable types in RxJava2, I may have to follow suit with what ReactFX does and have non-nullable versions of factories. The nullable factories will have to use an Optional packaged with the library.
from rxjavafx.
Any hints how to convert the JavaFxScheduler class to 2.0? I tried to convert it myself but failed. It did not execute anything. I'm pretty new to JavaRx in general and would really appreciate any help. Also I currently only need this class to execute things on the main thread. As far as I can see this is the only blocker to use RxJava in combination with RxJavaFX without using the JavaFX specific bindings?
from rxjavafx.
io.reactivex.Scheduler swingWorker =
io.reactivex.schedulers.Schedulers.from(SwingUtilities::invokeLater);
from rxjavafx.
@akarnokd you must mean Schedulers.from(Platform::runLater)
from rxjavafx.
I don't know JavaFX just wanted to show an example with Swing as a quick workaround. You may still want to implement a proper Scheduler as there is no need for the trampolining from
does.
from rxjavafx.
Good point. I may migrate this to RxJava 2.0 sooner than planned (maybe this weekend) as an exercise as well as to get it out of the way.
from rxjavafx.
Started working on this. I'm going to simultaneously release RxJavaFX 1.0 alongside RxJavaFX 2.0. If anybody has any last minute requests for features they'd like to see, let me know. I'm also going to remove the CompositeObservable
@beta annotation.
from rxjavafx.
RxJavaFX 2.0 is now done. I'm going to do a sweep one more time and then do a pre-release.
from rxjavafx.
Related Issues (20)
- Ebook Learning RxJava with JavaFX not navigatable HOT 3
- Additional Transformer factories HOT 1
- Getting index in ListChange HOT 1
- Help with Deployment of 2.11 HOT 20
- Java 11 Automatic-Module-Name HOT 2
- JavaFxObservable.valuesOf(fxObservable, nullSentinel) does not emmit first nullSentinel HOT 1
- JavaFxObservable.valuesOf() and Bindings.bindBidirectional() strange behaviour. HOT 3
- JavaFxObservable.actionEventsOf().subscribeOn(Schedulers.newThread()) misses some emissions HOT 3
- 2.11.0-RC16 / error: cannot access JavaFxObserver HOT 4
- Mockito complaining with Java 11/Gradle 5 HOT 1
- No factories should subscribeOn() the Platform thread
- JavaFxObserver#onError: custom implementation HOT 1
- Need help with maintenance, call for collaborators HOT 9
- Support scene accelerators HOT 4
- Change object not emitted when observed property had changed to null
- A typo on Gitbook guide
- It looks like passing all the tests with openjfx 13.0.1 HOT 2
- Error - cannot access io.reactivex.Observable HOT 1
- Is there a plan to use RXJava 3 ? HOT 2
- Setting up a new build chain for stable/nightly releases.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rxjavafx.