-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
3 - M (<= 1 month)
-
127
-
Needed
For writing on the main-thread - if sync is writing in the background the write fails and dispatching to a background thread is cumbersome because
It’s super inefficient - to write a value on a background thread, you need to get a thread safe reference to your object, start a new thread, open the Realm there, resolve the thread safe reference, write the value, then close the Realm, go back on your main thread, and force refresh the Realm so you get the new values. Compare that to a design where you do something like `await realm.beginWriteAsync()`
requested via PostNord through @nirinchev
Original discussion here:
https://realmio.slack.com/archives/CA3J67WGH/p1530268988000018
2nd discussion:
https://realmio.slack.com/archives/CA3J67WGH/p1525335131000083