asScheduler

fun CoroutineDispatcher.asScheduler(): Scheduler

Converts an instance of CoroutineDispatcher to an implementation of Scheduler.