asCoroutineDispatcher

fun Scheduler.asCoroutineDispatcher(): SchedulerCoroutineDispatcher

Converts an instance of Scheduler to an implementation of CoroutineDispatcher and provides native support of delay and withTimeout.