Don't you have to await the future? I would guess,...
# coroutines
i
Don't you have to await the future? I would guess, something like this will throw:
Copy code
fun 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