RxJava introduced Single<T>. How do I convert an Observable<T> to a Single<T>?
问题 RxJava recently introduced Single. Is there a way to convert an already existing Observable (that's pretty much a Single) to a Single without modifying the source of the original observable? For example, I have an api service class with a method that returns an Observable - which is essentially fetching a User from a remote resource. Say I can't modify the service. I want to consume this elsewhere but return a Single. How do I do this? A pinch more background RxJava recently introduced the