code: @InterfaceAudience.Public
      public void waitForRows() throws CouchbaseLiteException {
          start();
  
          while (true) {
              try {
                  queryFuture.get();
                  break;
              } catch (InterruptedException e) {
                  continue;
              } catch (Exception e) {
                  lastError = e;
                  throw new CouchbaseLiteException(e, Status.INTERNAL_SERVER_ERROR);
              }
          }
      }
docs: Blocks until the intial async query finishes. After this call either .rows or .error will be non-nil.
  
  TODO: It seems that implementation of waitForRows() is not correct. Should fix this!!!
  https://github.com/couchbase/couchbase-lite-java-core/issues/647