-
Type: Task
-
Resolution: Fixed
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
1 - XS (<= 1 day)
-
7497
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.