title: how to take an action after takeUntil rxjs function
body: <p>So I am trying to have a boolean be true if the function running runs long enough to trigger the takenUntil function which is running on a timer.</p>
  <p>Here is the code</p>
  <pre><code>start = this.http.get(environment.shochat_content_creator_set_valid_stream_start).pipe(
      tap(() =&gt; console.log('Stream start'))
    );
  
    poll = this.http.get(environment.check_if_stream_is_active_on_mux).pipe(
      tap(() =&gt; {
          this.streamready = true;
          return 0;
        }
        ),
      catchError(error =&gt; {
        console.log(error);
        return EMPTY;
      })
    );
  
    startastream(){
      const endtimer = timer(60000);
      this.streampollsubscription = this.start.pipe(
        switchMap(() =&gt; timer(0, 5000).pipe(
          tap(() =&gt; console.log('Polling every 5s')),
          mergeMap(() =&gt; this.poll)
        )),
        takeUntil(endtimer)
      ).subscribe();
  
    }
  </code></pre>
  <p>essentially i want a boolean to be set to true if the takeUntil does get fired.</p>
  <p><code>timeout = true;</code></p>
  <p>I have been looking at this stackoverflow post</p>
  <p><a href="https://stackoverflow.com/questions/52886276/do-some-action-after-takeuntil">Do some action after takeUntil</a></p>
  <p>but things are not as clear as I want it to be.</p>