Closed funct7 closed 6 months ago
Is this still an issue? Not sure I entirely understand the use case for that level of resolution. Can you make a small project with the issue?
Thanks
The use case is shown in the sample code. The app wants to throttle how often the user can refresh the contents. Throttling behavior would most likely happen at the second resolution level, but if you have debouncing behavior in some other part of the code--which is likely to be a few hundred ms--, or any logic that requires millisecond resolution, you will need the scheduler with a higher resolution, and the test will fail.
:warning: If you don't have something to report in the following format, it will probably be easier and faster to ask in the slack channel first. :warning:
:warning: Please take you time to fill in the fields below. If we aren't provided with this basic information about your issue we probably won't be able to help you and there won't be much we can do except to close the issue :( :warning:
If you still want to report issue, please delete above statements before submitting an issue.
Short description of the issue:
When using
TestScheduler
with custom resolution,throttle
operation doesn't seem to work precisely.Expected outcome:
If
TestScheduler(initialClock: 0, resolution: 0.001)
, and the throttle interval is.seconds(5)
, each emission to be spaced out by5000
ticks.What actually happens:
The following is the interval measured: (resolution, clock)
Self contained code example that reproduces the issue:
RxSwift/RxCocoa/RxBlocking/RxTest version/commit
RxSwift (5.1.2) RxTest (5.1.2)
Platform/Environment
How easy is to reproduce? (chances of successful reproduce after running the self contained code)
Xcode version:
:warning: Fields below are optional for general issues or in case those questions aren't related to your issue, but filling them out will increase the chances of getting your issue resolved. :warning:
Installation method:
I have multiple versions of Xcode installed: (so we can know if this is a potential cause of your issue)
Level of RxSwift knowledge: (this is so we can understand your level of knowledge and formulate the response in an appropriate manner)