Uploaded image for project: 'Realm Core'
  1. Realm Core
  2. RCORE-2035

SyncConfig::subscription_initializer should pass in a threadsafe reference

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      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.

            Assignee:
            nicola.cabiddu@mongodb.com Nicola Cabiddu
            Reporter:
            unitosyncbot Unito Sync Bot
            AD Core
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: