You can also use one of the blocking operators to wait for the Observable to finish: https://github.com/ReactiveX/RxJava/wiki/Blocking-Observable-Operators.
You can also use one of the blocking operators to wait for the Observable to finish: https://github.com/ReactiveX/RxJava/wiki/Blocking-Observable-Operators.