asCoroutineDispatcher

fun Handler.asCoroutineDispatcher(): HandlerContext

Represents an arbitrary Handler as a implementation of CoroutineDispatcher.