title: How can I change the period for Observable.interval, and how can I stop and resume the Observable ticks at runtime
body: <p>is there a way to change the Observable.interval period at runtime?
  and is there a way to stop and resume the Observable.interval ticks?
  and is there a way to reset the interval period?</p>
  
  <p>actually I'm using the following code to do an action for ever in a period time, but I have no control on it during the run time, I have to stop, resume, rest, and change the period at runtime.</p>
  
  <pre><code>Observable.interval(8, TimeUnit.SECONDS).observeOn(AndroidSchedulers.mainThread())
                      .subscribe(new Observer&lt;Long&gt;() {
                          @Override
                          public void onSubscribe(Disposable d) {
                              Log.i("TAG", "onSubscribe");
                          }
  
                          @Override
                          public void onNext(Long aLong) {
                              myMethod();
                          }
  
                          @Override
                          public void onError(Throwable e) {
                              Log.i("TAG", "onError");
                          }
  
                          @Override
                          public void onComplete() {
                              Log.i("TAG", "onComplete");
                          }
                      });
  </code></pre>
  
  <p>I have tried to google it to find a solution, but unfortunately I did not find any one, and I need a help or a resource if there is any.</p>