-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
timer() behavior? #530
Comments
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? |
- cover missing one case when source and parameter emits sametime relates to ReactiveX#530
I'd close it. But I'll leave that to you, if you're satisfied. |
I also think it can be closed - closing myself :) |
- cover missing one case when source and parameter emits sametime relates to #530
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).The text was updated successfully, but these errors were encountered: