Consider this situation. We have some class that has one method that returns some value:
public class Foo() { Observer<File> fileObserver; Observable<File> fileObservable; Subscription subscription; public File getMeThatThing(String id) { // implement logic in Observable<File> and return value which was // emitted in onNext(File) } }
How to return this value received in onNext ? What would be the right approach? Thanks.
android rx-java
user3339562
source share