Kotlin Coroutines: Have you ever wondered if you n...
# coroutines
l
Kotlin Coroutines: Have you ever wondered if you need to call suspend functions of Retrofit and Room on a background thread? I wrote a blogpost that answers this question! https://www.lukaslechner.com/do-i-need-to-call-suspend-functions-of-retrofit-and-room-on-a-background-thread/
👍 1
z
well if you are using
suspend
functions correctly, it should never matter. the whole point of
suspend
is that the internal code of the function can execute it’s work on the correct thread, and the calling thread does not need to be aware of it