coroutines on the jvm, is there some kind of under...
# announcements
x
coroutines on the jvm, is there some kind of underlying executor service that can be grabbed?
r
#coroutines
g
and yes,
Dispatchers.Default.asExecutorService()
--which, on jvm 8+, will give you wrappers/service-loaders on top of
ForkJoinPool.instance
, so you might be better off using that.
x
dubious, basically I wrote a client that takes an ExecutorService (or provides a default) and now they’ve got +12 threads because it’s used inside of the threads spawned for coroutines. Anyways thanks that’s superb information and probably a really easy way to fix their problem