I am using RxJava.
I have an Observable<T>
. How do I convert it to List<T>
?
Seems to be a simple operation, but I couldn't find it anywhere on the net.
Hope this helps.
List<T> myList = myObservable.toList().toBlocking().single();
thanks
anand raman