Uploaded image for project: 'Realm Java SDK'
  1. Realm Java SDK
  2. RJAVA-194

Callback for Realm file events: Created/deleted/migrated

      Goal

      My goal is to run initialData transaction asynchronously. However, given my Android application use case, I don't think the new Realm.getInstanceAsync is the best fit.

      Expected Results

      Get Realm instance synchronously, but execute initialData transaction asynchronously.

      Actual Results

      With Realm.getInstanceAsync, introduced in Realm 3.2.0, a Realm object is not returned synchronously.

      That has implications when you are using dependency injection for the Realm instance, as it would make the workflow much more complex than it needs to be (should I not be using it at all?).

      Right now, to initialize data, I'm simply making use of SharedPreferences and running a transaction asynchronously.

      Version of Realm

      Realm version: 3.2.0

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: