zak.taccardi
04/14/2025, 4:44 PMCoroutineScope
or CoroutineContext
to an ExecutorService
?
context is that I'm writing a test (so the CoroutineScope
comes from the runTest { }
function), and I need to inject an okhttp3.Dispatcher
(which requires an ExecutorService
to construct, docs) into an OkHttpClient.Builder
Sam
04/14/2025, 5:07 PMzak.taccardi
04/15/2025, 3:04 AMrunTest { .. }
, but maybe it doesn’t matter. also thinking maybe switching to ktor bc I’m sure the integration with coroutines here is betterSam
04/15/2025, 7:20 AM