Skip to content

Instantly share code, notes, and snippets.

@af2905
Created May 13, 2024 08:42
Show Gist options
  • Save af2905/b54fe30d59364fe1bfcb635884036af7 to your computer and use it in GitHub Desktop.
Save af2905/b54fe30d59364fe1bfcb635884036af7 to your computer and use it in GitHub Desktop.
tricky questions_function_code
val myScope: CoroutineScope = CoroutineScope(context = Job())
myScope.launch {
delay(500L)
println("A")
coroutineScope {
launch {
delay(1000L)
println("B")
}
delay(100L)
println("C")
}
println("D")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment