asCoroutineDispatcher

fun Scheduler.asCoroutineDispatcher(): SchedulerCoroutineDispatcher

Converts an instance of Scheduler to an implementation of CoroutineDispatcher.