I tried this code and it's exiting without printin...
# announcements
k
I tried this code and it's exiting without printing anything
Copy code
import kotlinx.coroutines.experimental.async
import kotlinx.coroutines.experimental.launch

fun main(args: Array<String>) {
    async{
        val tenny = star_ten(1)
        val twy =star_two(10)


        println(twy+tenny)

    }
}

suspend fun star_two(num:Int):Int{
    Thread.sleep(2)
    return num * 2
}
suspend fun star_ten(num:Int):Int{
    Thread.sleep(10)
    return num * 10
}