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
(this.coroutineContext[ContinuationInterceptor]!! as DelayController).pauseDispatcher(block)

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
(this.coroutineContext[ContinuationInterceptor]!! as DelayController).pauseDispatcher()