aboutsummaryrefslogtreecommitdiffstats
path: root/kotlinx-coroutines-test
diff options
context:
space:
mode:
Diffstat (limited to 'kotlinx-coroutines-test')
-rw-r--r--kotlinx-coroutines-test/README.md4
-rw-r--r--kotlinx-coroutines-test/src/internal/MainTestDispatcher.kt5
2 files changed, 4 insertions, 5 deletions
diff --git a/kotlinx-coroutines-test/README.md b/kotlinx-coroutines-test/README.md
index dd18d966..622e81d5 100644
--- a/kotlinx-coroutines-test/README.md
+++ b/kotlinx-coroutines-test/README.md
@@ -9,7 +9,7 @@ This package provides testing utilities for effectively testing coroutines.
Add `kotlinx-coroutines-test` to your project test dependencies:
```
dependencies {
- testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.3'
+ testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.5.1'
}
```
@@ -445,7 +445,7 @@ If you have any suggestions for improvements to this experimental API please sha
<!--- MODULE kotlinx-coroutines-test -->
<!--- INDEX kotlinx.coroutines.test -->
-[setMain]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.coroutines.test/kotlinx.coroutines.-dispatchers/set-main.html
+[setMain]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.coroutines.test/set-main.html
[runBlockingTest]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.coroutines.test/run-blocking-test.html
[UncompletedCoroutinesError]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.coroutines.test/-uncompleted-coroutines-error/index.html
[DelayController]: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.coroutines.test/-delay-controller/index.html
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
}
}