https://kotlinlang.org logo
#coroutines
Title
# coroutines
n

nhaarman

10/13/2016, 8:25 PM
Ah, I see that the following program doesn't terminate with exception either, I didn't realize that:
Copy code
fun test() {
    doSomethingElse()
    Thread.sleep(1000)
}

fun doSomethingElse() = Thread({
    TODO()
}).start()
The exception is logged, but the exit code is 0.