asExecutor

Converts an instance of CoroutineDispatcher to an implementation of Executor.

It returns the original executor when used on the result of Executor.asCoroutineDispatcher extensions.