DEV Community

0 seconds of 2 minutes, 5 secondsVolume 90%
Press shift question mark to access a list of keyboard shortcuts
00:00
00:00
02:05
 
Fabio Biondi
Fabio Biondi

Posted on

3 1

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.

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay