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

Do changeset observables work on background thread? #88

Closed
amccarri opened this issue Oct 16, 2017 · 2 comments
Closed

Do changeset observables work on background thread? #88

amccarri opened this issue Oct 16, 2017 · 2 comments

Comments

@amccarri
Copy link

IOW does RxRealm handle managing run loops for background threads to be able to observe changes in the background rather than in main thread?

@icanzilb
Copy link
Member

Not automatically. If you create a new thread based scheduler, install a run loop on it, and observe a collection on that thread - that'll work, but as said - that's not supported out of the box, you need to do your own setup (I was thinking about building something along those lines though)

Just in case you want to know more about notifications on bg threads: https://academy.realm.io/posts/realm-notifications-on-background-threads-with-swift/

@amccarri
Copy link
Author

Thanks for the quick answer! That article is actually what prompted me to ask this question. I was thinking of doing something similar after reading that but wanted to check if RxRealm had already been there and done that.

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

2 participants