asCoroutineDispatcher

fun Scheduler.asCoroutineDispatcher(): SchedulerCoroutineDispatcher

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