File tree 1 file changed +4
-4
lines changed
kotlinx-coroutines-core/jvm/test
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,14 +31,14 @@ public actual val stressTestMultiplier = stressTestMultiplierSqrt * stressTestMu
31
31
* thread can be written. Use it like this:
32
32
*
33
33
* ```
34
- * class MyTest {
34
+ * class MyTest : TestBase() {
35
35
* @Test
36
- * fun testSomething() = runBlocking<Unit> { // run in the context of the main thread
36
+ * fun testSomething() = runBlocking { // run in the context of the main thread
37
37
* expect(1) // initiate action counter
38
- * val job = launch(context) { // use the context of the main thread
38
+ * launch { // use the context of the main thread
39
39
* expect(3) // the body of this coroutine in going to be executed in the 3rd step
40
40
* }
41
- * expect(2) // launch just scheduled coroutine for exectuion later, so this line is executed second
41
+ * expect(2) // launch just scheduled coroutine for execution later, so this line is executed second
42
42
* yield() // yield main thread to the launched job
43
43
* finish(4) // fourth step is the last one. `finish` must be invoked or test fails
44
44
* }
You can’t perform that action at this time.
0 commit comments