the typical java answer would be to expose `Execut...
# coroutines
g
the typical java answer would be to expose `ExecutorService`'s at API entry points, but that seems like a clooge, at so should I simply expose `CoroutineDispatcher`s in the same vein? Should I fetch them off the callers
scope
?
g
It really depends on your case. Usually better just to expose suspend function. But if you have some background tasks, than it’s more tricky, you can expose of course API that allows to pass custom dispatcher or just max parallelism (same way as kotlinx.coroutines provides system properties for that)