why is TestCoroutineContext marked as obsolete?
# coroutines
c
why is TestCoroutineContext marked as obsolete?
s
Is it? (that was my contribution to Kotlin 😞 )
e
It will be reworked to structured concurrency and will become test scope.
s
Ah!!! 🙂 It’ll be made much better. Thanks!
e
Yes
c
is there a blocking scope that i can use to inject into classes that i test and make them run like they were invoked with runBlocking?
i have some classes that implement interfaces that are not suspending, so they have their own coroutine scope and use scope.launch {}. but in my tests it would be nice to run them blocking, or to be able to wait on the scope
d
@christophsturm currently there is no such thing, I have created https://github.com/Kotlin/kotlinx.coroutines/issues/810
c
thanks!