Do we need to import kotlinx-coroutines-android dependencies to use coroutines with kotlin? Kotlin has it’s own coroutines implementations right? What’s the diference between the two?
b
baxter
10/24/2021, 4:21 PM
The Android coroutine library defines
Dispatchers.Main
and also has some helper functions with
Handler
. Really, you only need to define the Android library, as it also brings in the base coroutine library.
s
Sergio C.
10/24/2021, 4:56 PM
ok cool. I was using coroutines without the import and everything was fine