These are chat archives for ReactiveX/RxJava

26th
Jun 2018
Ari Meidan
@AriMeidan
Jun 26 2018 09:43
Hi, i need help with ReplaySubject. I have an Observable create with fromCallable that calls a web api. Now i want to store the data, so i try to add a Subject.
The Subject is subscribing to the Observable and being return to the client observer. Without the Subject i get the response, with the Subject i get nothing (onNext w/o value and then onComplete).
David Karnok
@akarnokd
Jun 26 2018 10:52
@AriMeidan Please provide a code example.
Ari Meidan
@AriMeidan
Jun 26 2018 11:10
@akarnokd My bad, called Network on Main Thread, thus getting onNext w/o value. sorry.
But now I have a different question: How do i clear the Subjects buffer on other event (like timer or interval)?
David Karnok
@akarnokd
Jun 26 2018 11:21
You can't. It's not possible.