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

SyncConfig::subscription_initializer should pass in a threadsafe reference #7497

Closed
nirinchev opened this issue Mar 19, 2024 · 1 comment
Closed
Assignees

Comments

@nirinchev
Copy link
Member

Certain SDKs - such as dart - cannot invoke callbacks from random threads, which makes it impossible to use the subscription_initializer callback. I tried to add some locking code to have it execute on the dart thread, but then it's failing due to accessing the realm on an incorrect thread. Instead of passing in the Realm instance in the callback, it should pass in a thread safe reference, so the SDK can resolve it and obtain the instance on the correct thread.

Copy link

sync-by-unito bot commented Mar 19, 2024

➤ PM Bot commented:

Jira ticket: RCORE-2035

@sync-by-unito sync-by-unito bot closed this as completed Mar 21, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants