aboutsummaryrefslogtreecommitdiffstats
path: root/kotlinx-coroutines-test/src/internal/MainTestDispatcher.kt
diff options
context:
space:
mode:
Diffstat (limited to 'kotlinx-coroutines-test/src/internal/MainTestDispatcher.kt')
-rw-r--r--kotlinx-coroutines-test/src/internal/MainTestDispatcher.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/kotlinx-coroutines-test/src/internal/MainTestDispatcher.kt b/kotlinx-coroutines-test/src/internal/MainTestDispatcher.kt
index 9953756f..c85d27ea 100644
--- a/kotlinx-coroutines-test/src/internal/MainTestDispatcher.kt
+++ b/kotlinx-coroutines-test/src/internal/MainTestDispatcher.kt
@@ -35,7 +35,6 @@ internal class TestMainDispatcher(private val mainFactory: MainDispatcherFactory
delegate.dispatch(context, block)
}
- @ExperimentalCoroutinesApi
override fun isDispatchNeeded(context: CoroutineContext): Boolean = delegate.isDispatchNeeded(context)
override fun scheduleResumeAfterDelay(timeMillis: Long, continuation: CancellableContinuation<Unit>) {
@@ -50,11 +49,11 @@ internal class TestMainDispatcher(private val mainFactory: MainDispatcherFactory
return delay.invokeOnTimeout(timeMillis, block, context)
}
- public fun setDispatcher(dispatcher: CoroutineDispatcher) {
+ fun setDispatcher(dispatcher: CoroutineDispatcher) {
_delegate = dispatcher
}
- public fun resetDispatcher() {
+ fun resetDispatcher() {
_delegate = null
}
}