https://kotlinlang.org logo
#coroutines
Title
# coroutines
l

Lukas Lechner

05/29/2020, 2:18 PM
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

zak.taccardi

05/29/2020, 2:26 PM
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
3 Views