G
G
genbach2019-10-14 09:58:30
Android
genbach, 2019-10-14 09:58:30

Explain what the Kotlin code does?

fun main() = runBlocking {
  launch {
    delay(200L)
    println("Hello 1")
  }
  coroutineScope {
    launch {
      delay(500L)
      println("Hello 2")
    }
    delay(100L)
    println("Hello 3")
  }
  println("Hello 4")
}

or tell me where it is clearly written about the operators: "launch" and "coroutineScope"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alfss, 2019-10-14
@genbach

https://kotlin.github.io/kotlinx.coroutines/kotlin...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question