title: Await recursive forkJoin in Angular
body: <p>Trying to find out can I await for all http calls in a recursive forkJoin. How can I await for the all the http calls in forkJoin and receive the final result?</p>
  
  <p>Currently I have something like the following</p>
  
  <pre><code>public myMethod(urls: string[]) {
  
  ...
  
  return forkJoin(observables)
          .pipe(map(() =&gt; {
            if (json.urls !== 0) {
              return this.myMethod(json.urls);
            }
          }),   catchError((err) =&gt; {
            console.log(err);
            return of(null);
          })
          );
  }
  
  And then I subscribe ...
  
  public mainMehtod(){
    return this.myMethod([json]).pipe(map(() =&gt; {
        ...some stuff here. But I need here the final result from the finished recursion
      }));
  </code></pre>
  
  <p><strong>EDIT</strong></p>
  
  <p>Well the solution I found was, collecting all the observables in a recursion and then calling the forkjoin.</p>