Skip to content

Commit 0d26d6c

Browse files
zsmb13dkhalanskyjb
andauthored
Add references to available implementations in TestDispatcher docs (#3200)
Co-authored-by: dkhalanskyjb <[email protected]>
1 parent 584b3c4 commit 0d26d6c

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)