Skip to content

Commit bced602

Browse files
zsmb13dkhalanskyjb
authored andcommitted
Add references to available implementations in TestDispatcher docs (Kotlin#3200)
Co-authored-by: dkhalanskyjb <[email protected]>
1 parent d57ee3d commit bced602

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

kotlinx-coroutines-test/common/src/TestDispatcher.kt

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ import kotlin.jvm.*
1010

1111
/**
1212
* A test dispatcher that can interface with a [TestCoroutineScheduler].
13+
*
14+
* The available implementations are:
15+
* * [StandardTestDispatcher] is a dispatcher that places new tasks into a queue.
16+
* * [UnconfinedTestDispatcher] is a dispatcher that behaves like [Dispatchers.Unconfined] while allowing to control
17+
* the virtual time.
1318
*/
1419
@ExperimentalCoroutinesApi
1520
public abstract class TestDispatcher internal constructor(): CoroutineDispatcher(), Delay {

0 commit comments

Comments
 (0)