-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add way to convert CoroutineDispatcher to Scheduler #1923
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
Conversation
@elizarov ready for review again. Indeed there were some OOM issues so I simplified the job handling. as per your recommendations. |
22351e6
to
556cf91
Compare
@elizarov I created new API: |
556cf91
to
2d89cbf
Compare
32d51ae
to
3777437
Compare
@elizarov ready for review again. |
Before this gets merged I will squash + rebase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the last update accidentally broke some scheduling logic, and there are still more tests that need to be written.
One general bit of feedback on these tests is that they shouldn't actually cause any real delays. Unit tests should really not actually sleep at all if possible - they should be very fast, and every additional sleep slows down every future PR. The coroutine library has great support for testing with special dispatchers that give you fine-grained control over time, and those tools would be very useful for testing this very time-dependent logic. Here are some links to look at:
@zach-klippenstein @elizarov ready for review. |
b8f996f
to
91da78f
Compare
Please, ping me when you're done and its ready for review. |
@elizarov this is ready for review |
@zach-klippenstein @elizarov ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation mostly looks good, just two things left. I haven't re-reviewed the tests, I'm going to leave those for Roman since he's much more experienced writing tests for this stuff.
…b with task itself
d474b59
to
2aab409
Compare
@elizarov I went ahead and copied the changes over for rx3. let me know what else you think can be done. |
Is there a plan to merge this? it seems this pr was ready to merge almost year ago |
Thanks! We will edit this a bit in #3150 before merging. |
Fixes #968 and fixes #548 (duplicates).