Last active
January 30, 2022 15:58
-
-
Save KhomDrake/bc4b58034927710238ff99010eec9d10 to your computer and use it in GitHub Desktop.
Coroutine Hello World Example
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
import kotlinx.coroutines.* | |
fun main() { | |
GlobalScope.launch { | |
delay(1000L) | |
println("World!") | |
} | |
println("Hello,") | |
Thread.sleep(2000) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment