title: Best way to repeat an observable every minute rxjava
body: <p>I have the following method: </p>
  
  <pre><code>public class ParentalControlInteractor {
     public Single&lt;Boolean&gt; isPinSet() {
         return bamSdk.getPinManager().isPINSet();
     }
  }
  </code></pre>
  
  <p>I want to call this function to run once, then repeat every minute until infinity but this seems clumsy:</p>
  
  <pre><code>    parentalControlInteractor.isPinSet()
              .subscribeOn(Schedulers.io())
              .repeat(10000)
              .timeout(1600,TimeUnit.MILLISECONDS)
              .doOnError(throwable -&gt; {
                  Timber.e(throwable,"Error getting if Pin is set");
                  throwable.printStackTrace();
              })
              .subscribe(isPinSet -&gt; {
                  this.isPinSet = isPinSet;
                  Timber.d("Pin is set = " + isPinSet.toString());
                  });
  </code></pre>
  
  <p>Isn't there a better way to do it? I'm using RxJava2. Also, the method above only calls it 10000 times.  I want to call it forever, like using Handler.postDelayed().</p>