DEV Community

Play Button Pause Button
Fabio Biondi
Fabio Biondi

Posted on

Angular & RxJS Tips #5: Multiple Http calls - combineLatest vs forkJoin

In RxJS you can make multiple REST calls, wait that all of them are completed and get a single result.

You can use forkJoin and combineLatest RxJS operators to achieve this result.
So, what’s the difference?


πŸ”— Follow me on:

Top comments (2)

Collapse
 
distil profile image
Charavner Louis

What's difference with Promise.all ?

Collapse
 
rybson profile image
rybson

For example, such that you can easily cancel requests.