我想连接 tow api 调用。我如何在此代码上使用 ConcatMap ?
getHIndices(code) {
this.api.getInstrumentHistoryIndices(code, '3M')
.subscribe((response: {}) => {
this.prepareDataForHistory(response);
});
setTimeout(() => {
this.api.getInstrumentHistoryIndices(code, '5Y')
.subscribe((response: {}) => {
this.prepareDataForHistory2(response);
});
}, 300);
}