Skip to content

Commit 6c6df2b

Browse files
authored
fix: workaround for Writerside link changes to properly pass the Knit check
1 parent fc03afa commit 6c6df2b

9 files changed

+141
-141
lines changed

Diff for: docs/topics/cancellation-and-timeouts.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fun main() = runBlocking {
3232
}
3333
```
3434
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
35-
35+
<!--- KNIT example-cancel-01.kt -->
3636
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-cancel-01.kt).
3737
>
3838
{style="note"}
@@ -86,7 +86,7 @@ fun main() = runBlocking {
8686
}
8787
```
8888
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
89-
89+
<!--- KNIT example-cancel-02.kt -->
9090
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-cancel-02.kt).
9191
>
9292
{style="note"}
@@ -131,7 +131,7 @@ fun main() = runBlocking {
131131
}
132132
```
133133
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
134-
134+
<!--- KNIT example-cancel-03.kt -->
135135
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-cancel-03.kt).
136136
>
137137
{style="note"}
@@ -173,7 +173,7 @@ fun main() = runBlocking {
173173
}
174174
```
175175
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
176-
176+
<!--- KNIT example-cancel-04.kt -->
177177
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-cancel-04.kt).
178178
>
179179
{style="note"}
@@ -218,7 +218,7 @@ fun main() = runBlocking {
218218
}
219219
```
220220
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
221-
221+
<!--- KNIT example-cancel-05.kt -->
222222
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-cancel-05.kt).
223223
>
224224
{style="note"}
@@ -273,7 +273,7 @@ fun main() = runBlocking {
273273
}
274274
```
275275
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
276-
276+
<!--- KNIT example-cancel-06.kt -->
277277
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-cancel-06.kt).
278278
>
279279
{style="note"}
@@ -311,7 +311,7 @@ fun main() = runBlocking {
311311
}
312312
```
313313
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
314-
314+
<!--- KNIT example-cancel-07.kt -->
315315
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-cancel-07.kt).
316316
>
317317
{style="note"}
@@ -354,7 +354,7 @@ fun main() = runBlocking {
354354
}
355355
```
356356
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
357-
357+
<!--- KNIT example-cancel-08.kt -->
358358
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-cancel-08.kt).
359359
>
360360
{style="note"}
@@ -415,7 +415,7 @@ fun main() {
415415
//sampleEnd
416416
```
417417
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
418-
418+
<!--- KNIT example-cancel-09.kt -->
419419
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-cancel-09.kt).
420420
>
421421
{style="note"}
@@ -468,7 +468,7 @@ fun main() {
468468
}
469469
```
470470
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
471-
471+
<!--- KNIT example-cancel-10.kt -->
472472
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-cancel-10.kt).
473473
>
474474
{style="note"}

Diff for: docs/topics/channels.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ fun main() = runBlocking {
3131
}
3232
```
3333
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
34-
34+
<!--- KNIT example-channel-01.kt -->
3535
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-channel-01.kt).
3636
>
3737
{style="note"}
@@ -77,7 +77,7 @@ fun main() = runBlocking {
7777
}
7878
```
7979
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
80-
80+
<!--- KNIT example-channel-02.kt -->
8181
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-channel-02.kt).
8282
>
8383
{style="note"}
@@ -118,7 +118,7 @@ fun main() = runBlocking {
118118
}
119119
```
120120
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
121-
121+
<!--- KNIT example-channel-03.kt -->
122122
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-channel-03.kt).
123123
>
124124
{style="note"}
@@ -182,7 +182,7 @@ fun CoroutineScope.square(numbers: ReceiveChannel<Int>): ReceiveChannel<Int> = p
182182
}
183183
```
184184
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
185-
185+
<!--- KNIT example-channel-04.kt -->
186186
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-channel-04.kt).
187187
>
188188
{style="note"}
@@ -266,7 +266,7 @@ fun CoroutineScope.filter(numbers: ReceiveChannel<Int>, prime: Int) = produce<In
266266
}
267267
```
268268
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
269-
269+
<!--- KNIT example-channel-05.kt -->
270270
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-channel-05.kt).
271271
>
272272
{style="note"}
@@ -360,7 +360,7 @@ fun CoroutineScope.launchProcessor(id: Int, channel: ReceiveChannel<Int>) = laun
360360
}
361361
```
362362
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
363-
363+
<!--- KNIT example-channel-06.kt -->
364364
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-channel-06.kt).
365365
>
366366
{style="note"}
@@ -435,7 +435,7 @@ suspend fun sendString(channel: SendChannel<String>, s: String, time: Long) {
435435
}
436436
```
437437
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
438-
438+
<!--- KNIT example-channel-07.kt -->
439439
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-channel-07.kt).
440440
>
441441
{style="note"}
@@ -485,7 +485,7 @@ fun main() = runBlocking<Unit> {
485485
}
486486
```
487487
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
488-
488+
<!--- KNIT example-channel-08.kt -->
489489
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-channel-08.kt).
490490
>
491491
{style="note"}
@@ -538,7 +538,7 @@ suspend fun player(name: String, table: Channel<Ball>) {
538538
//sampleEnd
539539
```
540540
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
541-
541+
<!--- KNIT example-channel-09.kt -->
542542
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-channel-09.kt).
543543
>
544544
{style="note"}
@@ -602,7 +602,7 @@ fun main() = runBlocking<Unit> {
602602
//sampleEnd
603603
```
604604
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
605-
605+
<!--- KNIT example-channel-10.kt -->
606606
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-channel-10.kt).
607607
>
608608
{style="note"}

Diff for: docs/topics/composing-suspending-functions.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ suspend fun doSomethingUsefulTwo(): Int {
6060
}
6161
```
6262
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
63-
63+
<!--- KNIT example-compose-01.kt -->
6464
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-compose-01.kt).
6565
>
6666
{style="note"}
@@ -111,7 +111,7 @@ suspend fun doSomethingUsefulTwo(): Int {
111111
}
112112
```
113113
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
114-
114+
<!--- KNIT example-compose-02.kt -->
115115
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-compose-02.kt).
116116
>
117117
{style="note"}
@@ -164,7 +164,7 @@ suspend fun doSomethingUsefulTwo(): Int {
164164
}
165165
```
166166
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
167-
167+
<!--- KNIT example-compose-03.kt -->
168168
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-compose-03.kt).
169169
>
170170
{style="note"}
@@ -272,7 +272,7 @@ suspend fun doSomethingUsefulTwo(): Int {
272272
}
273273
```
274274
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
275-
275+
<!--- KNIT example-compose-04.kt -->
276276
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-compose-04.kt).
277277
>
278278
{style="note"}
@@ -339,7 +339,7 @@ suspend fun doSomethingUsefulTwo(): Int {
339339
}
340340
```
341341
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
342-
342+
<!--- KNIT example-compose-05.kt -->
343343
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-compose-05.kt).
344344
>
345345
{style="note"}
@@ -385,7 +385,7 @@ suspend fun failedConcurrentSum(): Int = coroutineScope {
385385
}
386386
```
387387
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
388-
388+
<!--- KNIT example-compose-06.kt -->
389389
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-compose-06.kt).
390390
>
391391
{style="note"}

Diff for: docs/topics/coroutine-context-and-dispatchers.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ fun main() = runBlocking<Unit> {
4343
}
4444
```
4545
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
46-
46+
<!--- KNIT example-context-01.kt -->
4747
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-context-01.kt).
4848
>
4949
{style="note"}
@@ -105,7 +105,7 @@ fun main() = runBlocking<Unit> {
105105
}
106106
```
107107
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
108-
108+
<!--- KNIT example-context-02.kt -->
109109
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-context-02.kt).
110110
>
111111
{style="note"}
@@ -191,7 +191,7 @@ fun main() = runBlocking<Unit> {
191191
}
192192
```
193193
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
194-
194+
<!--- KNIT example-context-03.kt -->
195195
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-context-03.kt).
196196
>
197197
{style="note"}
@@ -241,7 +241,7 @@ fun main() {
241241
}
242242
}
243243
```
244-
244+
<!--- KNIT example-context-04.kt -->
245245
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-context-04.kt).
246246
>
247247
{style="note"}
@@ -276,7 +276,7 @@ fun main() = runBlocking<Unit> {
276276
}
277277
```
278278
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
279-
279+
<!--- KNIT example-context-05.kt -->
280280
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-context-05.kt).
281281
>
282282
{style="note"}
@@ -338,7 +338,7 @@ fun main() = runBlocking<Unit> {
338338
}
339339
```
340340
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
341-
341+
<!--- KNIT example-context-06.kt -->
342342
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-context-06.kt).
343343
>
344344
{style="note"}
@@ -380,7 +380,7 @@ fun main() = runBlocking<Unit> {
380380
}
381381
```
382382
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
383-
383+
<!--- KNIT example-context-07.kt -->
384384
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-context-07.kt).
385385
>
386386
{style="note"}
@@ -431,7 +431,7 @@ fun main() = runBlocking(CoroutineName("main")) {
431431
}
432432
```
433433
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
434-
434+
<!--- KNIT example-context-08.kt -->
435435
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-context-08.kt).
436436
>
437437
{style="note"}
@@ -465,7 +465,7 @@ fun main() = runBlocking<Unit> {
465465
}
466466
```
467467
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
468-
468+
<!--- KNIT example-context-09.kt -->
469469
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-context-09.kt).
470470
>
471471
{style="note"}
@@ -560,7 +560,7 @@ fun main() = runBlocking<Unit> {
560560
}
561561
```
562562
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
563-
563+
<!--- KNIT example-context-10.kt -->
564564
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-context-10.kt).
565565
>
566566
{style="note"}
@@ -615,7 +615,7 @@ fun main() = runBlocking<Unit> {
615615
}
616616
```
617617
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
618-
618+
<!--- KNIT example-context-11.kt -->
619619
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-context-11.kt).
620620
>
621621
{style="note"}

Diff for: docs/topics/coroutines-basics.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fun main() = runBlocking { // this: CoroutineScope
3030
//sampleEnd
3131
```
3232
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
33-
33+
<!--- KNIT example-basic-01.kt -->
3434
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-basic-01.kt).
3535
>
3636
{style="note"}
@@ -105,7 +105,7 @@ suspend fun doWorld() {
105105
//sampleEnd
106106
```
107107
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
108-
108+
<!--- KNIT example-basic-02.kt -->
109109
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-basic-02.kt).
110110
>
111111
{style="note"}
@@ -146,7 +146,7 @@ suspend fun doWorld() = coroutineScope { // this: CoroutineScope
146146
//sampleEnd
147147
```
148148
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
149-
149+
<!--- KNIT example-basic-03.kt -->
150150
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-basic-03.kt).
151151
>
152152
{style="note"}
@@ -190,7 +190,7 @@ suspend fun doWorld() = coroutineScope { // this: CoroutineScope
190190
//sampleEnd
191191
```
192192
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
193-
193+
<!--- KNIT example-basic-04.kt -->
194194
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-basic-04.kt).
195195
>
196196
{style="note"}
@@ -231,7 +231,7 @@ fun main() = runBlocking {
231231
}
232232
```
233233
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
234-
234+
<!--- KNIT example-basic-05.kt -->
235235
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-basic-05.kt).
236236
>
237237
{style="note"}
@@ -267,7 +267,7 @@ fun main() = runBlocking {
267267
}
268268
```
269269
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}
270-
270+
<!--- KNIT example-basic-06.kt -->
271271
> You can get the full code [here](https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/jvm/test/guide/example-basic-06.kt).
272272
>
273273
{style="note"}

0 commit comments

Comments
 (0)