I have 2 calls. First call and second call.
Second call takes longer 99% of the time and once it's complete has all the info I need. But I call first call which is quick and limited info to appease user.
If Second call finishes before first - cancel first call.
How do i achieve this?
let myResult$ = someOperator([
myApiService.call1(),
myApiService.call2()]).pipe(
//do something after each call completes (twice in Total)
);