I have a repository class in shared code that make...
# multiplatform
j
I have a repository class in shared code that makes use of
MainScope
.....looking to test it out by calling from a
main
function in
jvmMain
source.....is there recommended approach to doing this?
as a hack I added following to
main
Copy code
val dispatcher = Executors
        .newSingleThreadExecutor()
        .asCoroutineDispatcher()

    Dispatchers.setMain(dispatcher)
and seems to work
it's probably debatable anyway whether should be using
MainScope
there!