Closed kwonoj closed 8 years ago
It's likely because the default scheduler implementations are different. RxJS 5 is using recursive scheduling and setTimeout by default.
Also, with these sorts of things, just the latency of the code triggering the setTimeouts can cost a millisecond here or there. I don't think anyone can or should try to rely on consistent timing from scheduling over setTimeout in two different code bases (or in some cases even within the same code base).
I would be more concerned if this was the case on the VirtualScheduler or TestScheduler. But even then, as long as it's consistent within all calls from the same library, it's probably not an issue.
Got point and agreed. Just a reference, TestScheduler didn't had same issues with same example. Maybe can close issue?
I'd close it. But I'll leave that to you, if you're satisfied.
I also think it can be closed - closing myself :)
I tried simple timer comparison as below,
RxOld
RxNew
could see emitting order is opposite between two implementation.
This causes interesting behavior differences in
skipUntil
operator, such asRxOld
RxNew
that RxJS4 omit source
5
, new implementation does emit since parameter observable emits prior to source emitting element, diagramwise supposed to emit 'same time' and expect source does not emit as below.Bit uncertain if this need to be treated as bug though, creating issue to get some clarification I'm possibly missing.
skipUntil
example was taken from document, and behavior occurred on 2 systems. (windows + linux).