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