-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
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