5 ms·
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 Asy
by bnr 12y ago
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?
- timanglade 12y agoDefinitely. 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.