Created
January 30, 2022 16:19
-
-
Save KhomDrake/7f83c4ea931a99d048e813435152e28a to your computer and use it in GitHub Desktop.
Threads Hello World
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 kotlin.concurrent.thread | |
fun main(args: Array<String>) { | |
thread { | |
Thread.sleep(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