Created
May 13, 2024 08:42
-
-
Save af2905/b54fe30d59364fe1bfcb635884036af7 to your computer and use it in GitHub Desktop.
tricky questions_function_code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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