cbruegg
03/28/2017, 2:44 PMoverride fun dispatch(context: CoroutineContext, block: Runnable) {
<http://handler.post|handler.post> {
val job = context[Job]
if (job != null && !job.isActive) {
val ex = job.getCompletionException()
// Hm, but what now? Should probably not throw this here?
}
// Just not executing this when !isActive probably isn't a good idea either
block.run()
}
}