title: Rxjava tolist() not completing
body: <p>I have a problem with my RxJava callchain. The toList is not working properly. I would guess that it is that the toList() needs something to complete. That is why it is stuck. But i do not know how to solve this issue</p>
  
  <p><strong>The code</strong></p>
  
  <pre><code>        mModel.getLocations()
              .flatMapIterable(new Function&lt;List&lt;Location&gt;, List&lt;Location&gt;&gt;(){
                  @Override
                  public List&lt;Location&gt; apply(final List&lt;Location&gt; locations) throws Exception {
                      return locations;
                  }
              })
              .filter(new Predicate&lt;Location&gt;() {
                  @Override
                  public boolean test(final Location location) throws Exception {
                      return location.searchExistInNameOrKeyWord(input);
                  }
              })
              .toList()
              .map(new Function&lt;List&lt;Location&gt;, List&lt;Location&gt;&gt;() {
                  @Override
                  public List&lt;Location&gt; apply(List&lt;Location&gt; locations) throws Exception {                     
                      /** Doing some random work with the list and then returning */
                  }
              })
              .subscribeOn(Schedulers.io())
              .observeOn(AndroidSchedulers.mainThread())
              .subscribe(new Consumer&lt;List&lt;Location&gt;&gt;() {
                  @Override
                  public void accept(final List&lt;Location&gt; locations) throws Exception {
                      mView.setAdapterItems(locations);
                  }
              });
  </code></pre>
  
  <p>Maybe someone that is a lot better than me at RxJava could pinpoint what i am doing wrong. </p>
  
  <p><strong>Update</strong></p>
  
  <pre><code>@Query("SELECT * from location")
  Flowable&lt;List&lt;Location&gt;&gt; loadAllLocations();
  </code></pre>
  
  <p>The <code>mModel.getLocations()</code> just calls the loadAllLocations like above from the Room percistance storage</p>