Interoperability question: if I’m using methods th...
# coroutines
m
Interoperability question: if I’m using methods that requires an instance of
android.os.Handler
||
java.util.concurrent.Executor
, is there any Coroutines interoperability APIs that would let me call them from a suspend function and connect the Handler/Executor with the CoroutineScope or help with it somehow?
Ah, I think I found the solution:
Copy code
executor.asCoroutineDispatcher()
handler.asCoroutineDispatcher()