<@U0QKGKMKN> ``` override fun dispatch(context: ...
# coroutines
c
@uhe
Copy code
override 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()
    }
}