|
1 |
| -<!--- INCLUDE .*/example-([a-z]+)-([0-9a-z]+)\.kt |
2 |
| -/* |
3 |
| - * Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. |
4 |
| - */ |
5 |
| -
|
6 |
| -// This file was automatically generated from coroutines-guide.md by Knit tool. Do not edit. |
7 |
| -package kotlinx.coroutines.guide.$$1$$2 |
8 |
| ---> |
9 |
| -<!--- KNIT ../kotlinx-coroutines-core/jvm/test/guide/.*\.kt --> |
10 |
| -<!--- TEST_OUT ../kotlinx-coroutines-core/jvm/test/guide/test/BasicsGuideTest.kt |
11 |
| -// This file was automatically generated from coroutines-guide.md by Knit tool. Do not edit. |
12 |
| -package kotlinx.coroutines.guide.test |
13 |
| -
|
14 |
| -import org.junit.Test |
15 |
| -
|
16 |
| -class BasicsGuideTest { |
17 |
| ---> |
| 1 | +<!--- TEST_NAME BasicsGuideTest --> |
18 | 2 |
|
19 | 3 | **Table of contents**
|
20 | 4 |
|
@@ -142,7 +126,7 @@ fun main() = runBlocking<Unit> { // start main coroutine
|
142 | 126 |
|
143 | 127 | </div>
|
144 | 128 |
|
145 |
| -> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-02b.kt). |
| 129 | +> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-03.kt). |
146 | 130 |
|
147 | 131 | <!--- TEST
|
148 | 132 | Hello,
|
@@ -197,7 +181,7 @@ fun main() = runBlocking {
|
197 | 181 |
|
198 | 182 | </div>
|
199 | 183 |
|
200 |
| -> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-03.kt). |
| 184 | +> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-04.kt). |
201 | 185 |
|
202 | 186 | <!--- TEST
|
203 | 187 | Hello,
|
@@ -242,7 +226,7 @@ fun main() = runBlocking { // this: CoroutineScope
|
242 | 226 |
|
243 | 227 | </div>
|
244 | 228 |
|
245 |
| -> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-03s.kt). |
| 229 | +> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-05.kt). |
246 | 230 |
|
247 | 231 | <!--- TEST
|
248 | 232 | Hello,
|
@@ -288,7 +272,7 @@ fun main() = runBlocking { // this: CoroutineScope
|
288 | 272 |
|
289 | 273 | </div>
|
290 | 274 |
|
291 |
| -> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-04.kt). |
| 275 | +> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-06.kt). |
292 | 276 |
|
293 | 277 | <!--- TEST
|
294 | 278 | Task from coroutine scope
|
@@ -327,7 +311,7 @@ suspend fun doWorld() {
|
327 | 311 |
|
328 | 312 | </div>
|
329 | 313 |
|
330 |
| -> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-05.kt). |
| 314 | +> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-07.kt). |
331 | 315 |
|
332 | 316 | <!--- TEST
|
333 | 317 | Hello,
|
@@ -364,7 +348,7 @@ fun main() = runBlocking {
|
364 | 348 |
|
365 | 349 | </div>
|
366 | 350 |
|
367 |
| -> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-06.kt). |
| 351 | +> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-08.kt). |
368 | 352 |
|
369 | 353 | <!--- TEST lines.size == 1 && lines[0] == ".".repeat(100_000) -->
|
370 | 354 |
|
@@ -396,7 +380,7 @@ fun main() = runBlocking {
|
396 | 380 |
|
397 | 381 | </div>
|
398 | 382 |
|
399 |
| -> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-07.kt). |
| 383 | +> You can get full code [here](../kotlinx-coroutines-core/jvm/test/guide/example-basic-09.kt). |
400 | 384 |
|
401 | 385 | You can run and see that it prints three lines and terminates:
|
402 | 386 |
|
|
0 commit comments