【发布时间】:2019-10-31 15:39:57
【问题描述】:
使用 rx.js 编写这个简短的池化例程的最佳方法是什么
1. call the function this.dataService.getRowsByAccountId(id) to return Observable<Row[]> from back-end
2. send the received data to this function this.refreshGrid(data);
3. if one of items in the data meet this criteria r.stillProcessing==true
4. then wait 2 seconds and start again from step-1
5. if another call was made to this routine and there is a pending timer scheduled. Don't schedule another one because i don't want multiple timers running.
【问题讨论】:
-
你想做什么?
标签: javascript angular rxjs observable