asCoroutineDispatcher

@JvmName("from") fun Executor.asCoroutineDispatcher(): CoroutineDispatcher (source)

Platform and version requirements: JVM

Converts an instance of Executor to an implementation of CoroutineDispatcher.