Promise.all behavior with RxJS Observables?

后端 未结 4 1923
暖寄归人
暖寄归人 2020-11-27 17:12

In Angular 1.x I would sometimes need to make multiple http requests and do something with all the responses. I would throw all the promises in an array and cal

4条回答
  •  无人及你
    2020-11-27 17:27

    On reactivex.io forkJoin actually points to Zip, which did the job for me:

    let subscription = Observable.zip(obs1, obs2, ...).subscribe(...);
    

提交回复
热议问题