fix(timer): fix #314, setTimeout/interval should return original timerId#894
fix(timer): fix #314, setTimeout/interval should return original timerId#894mhevery merged 1 commit intoangular:masterfrom
Conversation
7200dc1 to
248587b
Compare
|
don't know why I am still asking in And |
28145b1 to
248587b
Compare
|
We call setInterval() in our angular 4 application. Until zone.js 0.8.17 this returned us a ZoneTask with a runCount attribute, which we used in further code. Do I understand it right that this is not possible anymore following this change (as the timerId is now returned from 0.8.18)? |
|
@tkohr , yes, from 0.8.18, |
|
@JiaLiPassion , our use case is the following: We call REST API A every 20 seconds with |
|
@tkohr , yeah, I see, I believe the |
fix #314
in browser and nodejs,
setTimeout,setIntervalshould return originaltimerId(number or Timer object) instead ofZoneTask, because it will break some logic if other libraries expect the standard data types.