Skip to content

Commit 1ebe6b1

Browse files
qwwdfsadpablobaxter
authored andcommitted
Remove opt-in annotation from internal MainTestDispatcher
See #KT-45844
1 parent 8cf0f36 commit 1ebe6b1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

kotlinx-coroutines-test/src/internal/MainTestDispatcher.kt

+2-3
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ internal class TestMainDispatcher(private val mainFactory: MainDispatcherFactory
3535
delegate.dispatch(context, block)
3636
}
3737

38-
@ExperimentalCoroutinesApi
3938
override fun isDispatchNeeded(context: CoroutineContext): Boolean = delegate.isDispatchNeeded(context)
4039

4140
override fun scheduleResumeAfterDelay(timeMillis: Long, continuation: CancellableContinuation<Unit>) {
@@ -50,11 +49,11 @@ internal class TestMainDispatcher(private val mainFactory: MainDispatcherFactory
5049
return delay.invokeOnTimeout(timeMillis, block, context)
5150
}
5251

53-
public fun setDispatcher(dispatcher: CoroutineDispatcher) {
52+
fun setDispatcher(dispatcher: CoroutineDispatcher) {
5453
_delegate = dispatcher
5554
}
5655

57-
public fun resetDispatcher() {
56+
fun resetDispatcher() {
5857
_delegate = null
5958
}
6059
}

0 commit comments

Comments
 (0)