Hi guys, any one know how to suspend support is im...
# android
s
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
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.