title: Angular 6: How to unsubscribe rsjx interval or timer?
body: <p>I think the question is clear. I coudn't find any informations about how to unsubscribe from a <code>rsjx</code>-operation like <code>interval or timer</code>?</p>
  
  <p>My Component:</p>
  
  <pre><code>public intervallTimer = interval(5000);
  
  ngOnInit() {
    this.getValues();
    this.intervallTimer.subscribe(() =&gt; this.getValues());
  }
  
  // What I like to do is something like this, but "unsubscribe()" that's no function
  somefunction(){
    this.intervallTimer.unsubscribe()
  }
  </code></pre>