Join Slack
Communities
Powered by
Hi guys, any one know how to suspend support is im...
# android
s
SrSouza
07/16/2019, 7:03 PM
Hi guys, any one know how to suspend support is impl on room? I want to know if he use withContext to IO and if is safe to use in UI/Main thread without blocking and without using withContext to IO
d
dekans
07/18/2019, 11:12 AM
https://android.googlesource.com/platform/frameworks/support/+/androidx-master-dev/room/ktx/src/main/java/androidx/room/CoroutinesRoom.kt
It's a custom dispatcher. So yes it's safe to call it from
Dispatchers.Main
, that's how coroutines work.
3
Views
Open in Slack
Previous
Next