Example #1
0
 public Observable<String> waitForEndObservable(@Nullable final CancellableHandler handler) {
   if (handler != null) {
     handler.unsubscribeIfCancelled(subscription);
   }
   loading.onCompleted();
   return waitForEnd;
 }
Example #2
0
 public void waitForBackgroundLoading(@Nullable final CancellableHandler handler) {
   if (handler != null) {
     handler.unsubscribeIfCancelled(subscription);
   }
   loading.onCompleted();
   waitForEnd.toBlockingObservable().lastOrDefault(null);
 }