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

Realm 0.97 throws if notification block is added on thread without runloop #52

Closed
bigfish24 opened this issue Dec 20, 2015 · 2 comments
Closed
Labels

Comments

@bigfish24
Copy link
Contributor

RBQRealmNotificationManager, should be refactored to use a singleton worker thread that will receive the Realm notifications and pass along changes to RBQFetchedResultsController so that the dev never has to worry about passing changes to RBQRealmNotificationManager on a background queue/thread that doesn't have a runloop.

@stephenkopylov
Copy link

Just faced this problem. Really w8 for fix. =)

@bigfish24
Copy link
Contributor Author

Yeah sorry about this probably will be a day or two before I can implement my solution.

bigfish24 pushed a commit to realm/realm-swift that referenced this issue Jan 5, 2016
… a thread without a runloop as long as we are on the same thread as the transaction, since the calling of the block won't occur via the named pipe.

This is a strange use-case but came up with RBQFetchedResultsController via RBQRealmNotificationManager: Roobiq/RBQFetchedResultsController#52

RBQRealmNotificationManager registers a notification block on the same thread as the transaction, which is probably not a common use-case beyond a component like this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants