I've found <https://kotlinlang.org/api/kotlinx.cor...
# coroutines
c
I've found https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.coroutines.test/-delay-controller/pause-dispatcher.html which promises to fix all my problems and fulfil all my dreams, but it's deprecated with no explanation what to use in its place. Can someone point me to what I should use now?
s
Well, the standard test dispatcher in the new API is always “paused” in a sense, until you explicitly tell it to advance, so the
pauseDispatcher
concept doesn’t really apply any more. Got an example of what you’re trying to do?
c
We weren't passing a StandardTestDispatcher in as our
Dispatcher
implementation, and we also didn't pass the scheduler that you get from
runTest
so now we have granular control over when the coroutines ran, but we do now!
feel like I've just levelled up