nhaarman
10/13/2016, 8:40 PMget()
indeed, but the blocking is not what I want. The exceptionally { }
method does give me a push in the right direction though.
For example, the following does what I want (crashing the app):
fun test() {
val doSomething = doSomething()
doSomething.exceptionally {
Handler(Looper.getMainLooper()).post{
throw it
}
}
}