How can I collect emitted items from observable to List when observable never completes?
Example I have something similar so Observable emits series of values, but never completes unless you unsubscribe, because of that .toList()
not gonna work.
Observable<User>
.flatMap {}
.toList()
How can I collect All users to List and emit it once after applying flatMap function to it?