These are chat archives for ReactiveX/RxJava

Dec 2016
David Karnok
Dec 13 2016 08:41
@a-reisberg A Subject is already an Observable so you don't have to do anything. asObservable has been renamed to hide in 2.x and it adds an extra layer so casting back to Subject no longer works. Just define your code as Observable<T> someMethod() { return subject; ).
Alex Reisberg
Dec 13 2016 15:08
@akarnokd I did end up using hide. The reason is that I want to use onNext internally and only allow others to subscribe. Thanks a lot!