You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.
When performing a clear from the MainThread while Observing a getRefreshing Observable the NetworkOnMainThread exception is thrown while fetching from an Api.
Hmm. Wouldn't network on Main thread exception also be thrown if you call get from main thread? Overall store performs all operations on whatever thread the api is called. I'll make a getRefreshing override that takes in a scheduler.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When performing a clear from the MainThread while Observing a getRefreshing Observable the NetworkOnMainThread exception is thrown while fetching from an Api.
Here is a broken down example:
This exception isn't thrown when you force the api call to always subscribe on the IO schedulers, however it seems to me that this isn't as intended.
I traced it down to the
RealInternalStore::response
methodHere it seems the original exception is thrown inside the
onErrorResumeNext
clauseThe text was updated successfully, but these errors were encountered: