-
Notifications
You must be signed in to change notification settings - Fork 182
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
Rx: StorIOContentResolver updates running on StorIOContentResolverNotificationsThread #786
Comments
Default or specified scheduler for whole However further updates will be processed on thread that caused them, this is regular practice for rx related code and libraries and as a user you're able to change that with Moreover, if you know that operation is going to take a while it's pretty good idea to explicitly conrol thread it'll run on :) However we can introduce some kind of |
Hi! |
@nikitin-da SGTM! |
@geralt-encore what do you think about proposal? |
I don't have deep knowledge about this topic but as far as I understand the proposal makes sense. |
|
Since we should initially receive all notifications on the common handler thread (https://github.com/pushtorefresh/storio/blob/master/storio-content-resolver/src/main/java/com/pushtorefresh/storio/contentresolver/impl/RxChangesObserver.java#L40) moving emission to thread from io pool will add delay due to thread switching =(
I'm not sure that |
Hello,
I've noticed that when using the
StorIOContentResolver
API, all emissions triggered by a contentResolver notifications come back on the same thread, so doing a long running operation on the same observable can delay notifications being received by another listener. For instance:I realize that it can be avoided by switching to another thread with
observeOn()
, but aren't updates supposed to use the default (or specified) scheduler?The text was updated successfully, but these errors were encountered: