asExecutor

fun CoroutineDispatcher.asExecutor(): Executor

Converts an instance of CoroutineDispatcher to an implementation of Executor.

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

Sources

jvm source
Link copied to clipboard