这个forkJoin永远不会完成,即使其内部的可观察者做到了,我还缺少什么?
BuildInfo.buildType
控制台:
return Observable.forkJoin([
this.ProductManager.get(params['brandId'], params['productId'])
.map(product => <Product> product)
.do(product => {this.product = product;})
.do(() => console.log('a1'), () => console.log('a2'), () => console.log('a3')),
this.basketContext.basket.take(1)
.do(() => console.log('b1'), () => console.log('b2'), () => console.log('b3'))
])
.do(() => console.log('1'), () => console.log('2'), () => console.log('3'));
为什么forkJoin的onComplete从未被调用?
答案 0 :(得分:0)
显然,如果后续的subscribe()抛出错误,则完整的回调永远不会完成......错误是无声的,所以我把它误认为forkJoin没有完成。