July 2018
Intermediate to advanced
266 pages
7h 11m
English
By default, an exception happening inside a job will be propagated to where it was created. This happens even if we aren't waiting for the job to complete. Consider this example:
fun main(args: Array<String>) = runBlocking { launch { TODO("Not Implemented!") } delay(500)}
This will propagate the exception to the uncaught exception handler of the current thread. In a JVM application, this means that the exception will be printed on standard error output, as illustrated:
Read now
Unlock full access