So rx java has a way to inject scheduler, is there...
# coroutines
d
So rx java has a way to inject scheduler, is there a plan to have similar thing for coroutines dispatchers? I want to test my code which rely on 3rd party component. This component doesn’t provide way to change dispatcher.
Copy code
kotlin
// library
class Componenet {

   fun doSomething() {
       launch { // long running operation }
   }
}

// client
fun test() {
    Componenet().doSomething()
   // I want to wait until doSomething is finished but I can't
}
👍 1
âž• 3
m
I guess you mean something similar to RxJavaPlugins