<does coroutines in Kotlin work like threads?> So ...
# stackoverflow
u
does coroutines in Kotlin work like threads? So I am trying to learn kotlin coroutines for networking purposes on Android but I don't understand how they work. What am I missing in the code to make it work like a thread (the two counters should mix together ) ? Should I use something else than runBlocking {} ? import kotlinx.coroutines.* suspend fun counter(a: Int) { for(n in 0..a) { print(n.toString() + " ") } } fun main() { runBlocking { counter(10) launch { counter(10) }...