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.

Find what you were looking for? Sign up so you can:

Β 
🌚 Enable dark mode
πŸ”  Change your default font
πŸ“š Adjust your experience level to see more relevant content