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