Skip to content
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

Cannot subscribe to LiveData on the background thread #4

Open
qbait opened this issue Apr 21, 2020 · 0 comments
Open

Cannot subscribe to LiveData on the background thread #4

qbait opened this issue Apr 21, 2020 · 0 comments

Comments

@qbait
Copy link

qbait commented Apr 21, 2020

Hey Paulina, I like your lib, well done! :)
I'm getting com.paulinasadowska.rxworkmanagerobservers.exceptions.LiveDataSubscribedOnWrongThreadException: cannot subscribe to LiveData on the background thread.

I've tried adding to my subscription, but without success.

            .subscribeOn(AndroidSchedulers.mainThread())
            .observeOn(AndroidSchedulers.mainThread())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant