coroutines on the jvm, is there some kind of underlying executor service that can be grabbed?
r
Ruckus
09/27/2019, 9:57 PM
#coroutines
g
groostav
09/27/2019, 10:10 PM
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
xenoterracide
09/27/2019, 10:14 PM
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