We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c9af7f commit 355e881Copy full SHA for 355e881
kotlinx-coroutines-test/common/src/TestDispatchers.kt
@@ -13,6 +13,9 @@ import kotlin.jvm.*
13
* Sets the given [dispatcher] as an underlying dispatcher of [Dispatchers.Main].
14
* All subsequent usages of [Dispatchers.Main] will use the given [dispatcher] under the hood.
15
*
16
+ * Using [TestDispatcher] as an argument has special behavior: subsequently-called [runTest], as well as
17
+ * [TestScope] and test dispatcher constructors, will use the [TestCoroutineScheduler] of the provided dispatcher.
18
+ *
19
* It is unsafe to call this method if alive coroutines launched in [Dispatchers.Main] exist.
20
*/
21
@ExperimentalCoroutinesApi
0 commit comments