title: RxJava call disposable dispose()
body: <p>I am using rxjava with retrofit. In the following code the subscribeOn() and observeOn() keeps running. The App terminates and launched by itself continuously.  </p>
  
  <pre><code>disposable = api.getUsers("135")
                  .subscribeOn(Schedulers.io())
              .observeOn(AndroidSchedulers.mainThread())
              .subscribe({
                  users -&gt; showResult(users)
              })
  </code></pre>
  
  <p>If I dispose right after the above it won't fetch complete data. So my question is when to dispose dispoable or how to know when subscribeOn() and observeOn() has completed it's task.</p>