Ian
04/02/2017, 7:54 PMfun main(args: Array<String>) {
val f = future {
throw RuntimeException("Hello!")
}
f.await()
}
1 reply
No, I don’t think you need to await the future - future {}
will start the coroutine.
But I can see why the exception would be swallowed, I’m just not sure what the solution is to avoid exceptions being silently swallowed this