pauseDispatcher
Deprecated (with error)
The test coroutine scope isn't able to pause its dispatchers in the general case. Only `TestCoroutineDispatcher` supports pausing; pause it directly, or use a dispatcher that is always "paused", like `StandardTestDispatcher`.
Replace with
import kotlin.coroutines.ContinuationInterceptor
Content copied to clipboard
(this.coroutineContext[ContinuationInterceptor]!! as DelayController).pauseDispatcher(block)
Content copied to clipboard
Deprecated (with error)
The test coroutine scope isn't able to pause its dispatchers in the general case. Only `TestCoroutineDispatcher` supports pausing; pause it directly, or use a dispatcher that is always "paused", like `StandardTestDispatcher`.
Replace with
import kotlin.coroutines.ContinuationInterceptor
Content copied to clipboard
(this.coroutineContext[ContinuationInterceptor]!! as DelayController).pauseDispatcher()
Content copied to clipboard