asScheduler

Converts an instance of CoroutineDispatcher to an implementation of Scheduler.