RxJavaFX
RxJavaFX copied to clipboard
RxJava bindings for JavaFX
A shortcut for this: ``` Observable.generate(emitter -> { scene.getAccelerators().put(new KeyCharacterCombination("c"), () -> emitter.onNext(true)); }); ```
Hey, RxJava2 has changed its default policy regarding errors: Exceptions are never swallowed or ignored. Therefore I suggest that the default implementation should also handle exceptions differently. Maybe just get...
I've noticed there are a few factories left that call `subscribeOn(JavaFxScheduler.platform()` unnecessarily. I actually noticed this causes some issues with `ObservableSet` change streams, and emissions are not firing on changes....
I was learning about concurrency from your book (btw it's great) and ran into this. When creating an _Observable_ using _JavaFxObservable_ factory methods and following it with _subscribeOn(Scheduler)_ the _Scheduler_...
In my opinion the first/initial emission of nullSentinel is missing: ```java ObjectProperty stringProperty = new SimpleObjectProperty(); JavaFxObservable.valuesOf(stringProperty, "N/A").subscribe(System.out::println); stringProperty.set("one"); stringProperty.set(null); stringProperty.set("two"); ``` Output: one N/A two I would add "else"...
Similar to `JavaFxObservable#eventsOf(Node, EventType)`, JavaFxObservable should have a method to observe Event objects during the capturing phase of event delivery. Internally, such method would use `Node#addEventFilter(EventType, EventHandler)` instead of `Node#addEventHandler(EventType,...
Hi, `javafx.collections.ListChangeListener` among other methods also contains `getFrom` and `getTo` methods, indicating array indexes of added/modified deleted entries sub lists. Would it be possible to extend `io.reactivex.rxjavafx.sources.ListChange` to provide an...
What do you think about adding `FxCompletableTransformer`, `FxMaybeTransformer` and `FxSingleTransformer` to complement the existing `FxObservableTransformer` and `FxFlowableTransformer`?