Pregunta de entrevista de Convertr

How can we make multiple api calls in 1 subscription?

Respuesta de la entrevista

Anónimo

8 may 2024

Taking this question literally as it's given, you can make a single subscription and keep adding Observables to it, ie: this.sendDataSubscription.add(). Interviewer corrected themselves saying no I wish to run the api calls in parallel (which is a key part not to have initially mentioned as it gives a completely different meaning to the question). I then updated my answer to "forkJoin" which is correct.