Re:Show HN: Realm for Android
by bnr on Tuesday September 30, 2014 @01:43PM
(#8389686)
It looks like all I/O happens synchronously, which means you generally should not run that on Android's main thread. You could just warp all interactions in AsyncTasks, but that's cumbersome. Do you consider adding an async API with callbacks on the main thread?
[ Parent
| on HN ]
Re:Show HN: Realm for Android
by timanglade on Tuesday September 30, 2014 @02:15PM
(#8389971)
Definitely. We’re considering adding an async mode for individual transactions, but that opens a few issues in terms of consistency and error-handling, and we’d definitely want to address those if we offer that method in the API. For now we think the best route is to let people defer the writes themselves since you know best when the write will be executed and what conditions may arise, but you’re not the first person to ask so we’ll definitely take another, harder look at adding this.