I'm trying to create a simple native Kotlin project. I want my project to wait for X millisec during a process:
import kotlin.concurrent
fun main() {
Thread.sleep(500);
println("Hello world")
}
Command to compile:
kotlinc main.kt -o program.exe
But I get the following error:
main.kt:1:15: error: unresolved reference: concurrent
import kotlin.concurrent
^
main.kt:4:2: error: unresolved reference: Thread
Thread.sleep(500);
^
I'm a bit confused, isn't this the proper way to delay my application?