These are chat archives for ReactiveX/RxJava

5th
Oct 2017
Exerosis
@Exerosis
Oct 05 2017 05:11
Is there a version of RxJava 2 that uses java functional interfaces?
David Karnok
@akarnokd
Oct 05 2017 07:40
@AmrElmasry Many operators have to intercept dispose, but otherwise it is required by RxJava so operator fusion doesn't skip your operator by talking to the upstream's Disposable directly.
@Exerosis No. RxJava has to run on Java 6 where those interfaces are not available. If there is going to be a RxJava 3 with Java 9, we may still use custom interfaces as the Java 8 functional interfaces don't allow throwing checked exceptions - it has become a convenience with RxJava 2 to be able to throw at will from lambdas.