-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
1.x: allow customizing GenericScheduledExecutorService via RxJavaHooks #4173
Conversation
Current coverage is 84.08%@@ 1.x #4173 diff @@
==========================================
Files 262 263 +1
Lines 17048 17057 +9
Methods 0 0
Messages 0 0
Branches 2574 2574
==========================================
+ Hits 14247 14342 +95
+ Misses 1938 1872 -66
+ Partials 863 843 -20
|
RxJavaHooks.setOnGenericScheduledExecutorService(null); | ||
|
||
Schedulers.shutdown(); | ||
// start() is package private so had to move this test here |
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.
not valid
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.
Thanks, will clean it in the next coverage test PR.
👍 |
I'll have to redo this once #4182 is merged so please don't merge yet. |
23a8479
to
021d34d
Compare
Rebased. |
This PR adds a customization point to
RxJavaHooks
that let's one create differentScheduledExecutorService
instances for theGenericScheduledExecutorService
utility.To apply the hook (or remove it), one has to restart the
Schedulers
viashutdown()
and thenstart()
. Note that the latter had to be made public as well.Related #4171.