Marcello Galhardo11/01/2023, 6:35 PM
but must provide a Java-friendly API. I came up with an idea of accepting a `Executor`/`ExecutorService` and convert it to a scope as following:
- it seems to be working correctly, even when the service shutdown. My question is: is there any problem in this approach that I’m not aware of, or is there any alternative?
CoroutineScope(context = executorService.asCoroutineDispatcher())