Skip to content

Commit

Permalink
fix: workaround for Writerside link changes to properly pass the Knit…
Browse files Browse the repository at this point in the history
… check
  • Loading branch information
zoobestik authored Sep 27, 2024
1 parent fc03afa commit 6c6df2b
Show file tree
Hide file tree
Showing 9 changed files with 141 additions and 141 deletions.
20 changes: 10 additions & 10 deletions docs/topics/cancellation-and-timeouts.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fun main() = runBlocking {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-cancel-01.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -86,7 +86,7 @@ fun main() = runBlocking {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-cancel-02.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -131,7 +131,7 @@ fun main() = runBlocking {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-cancel-03.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -173,7 +173,7 @@ fun main() = runBlocking {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-cancel-04.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -218,7 +218,7 @@ fun main() = runBlocking {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-cancel-05.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -273,7 +273,7 @@ fun main() = runBlocking {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-cancel-06.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -311,7 +311,7 @@ fun main() = runBlocking {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-cancel-07.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -354,7 +354,7 @@ fun main() = runBlocking {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-cancel-08.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -415,7 +415,7 @@ fun main() {
//sampleEnd
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-cancel-09.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -468,7 +468,7 @@ fun main() {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-cancel-10.kt -->
> 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).
>
{style="note"}
Expand Down
20 changes: 10 additions & 10 deletions docs/topics/channels.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ fun main() = runBlocking {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-channel-01.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -77,7 +77,7 @@ fun main() = runBlocking {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-channel-02.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -118,7 +118,7 @@ fun main() = runBlocking {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-channel-03.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -182,7 +182,7 @@ fun CoroutineScope.square(numbers: ReceiveChannel<Int>): ReceiveChannel<Int> = p
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-channel-04.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -266,7 +266,7 @@ fun CoroutineScope.filter(numbers: ReceiveChannel<Int>, prime: Int) = produce<In
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-channel-05.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -360,7 +360,7 @@ fun CoroutineScope.launchProcessor(id: Int, channel: ReceiveChannel<Int>) = laun
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-channel-06.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -435,7 +435,7 @@ suspend fun sendString(channel: SendChannel<String>, s: String, time: Long) {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-channel-07.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -485,7 +485,7 @@ fun main() = runBlocking<Unit> {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-channel-08.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -538,7 +538,7 @@ suspend fun player(name: String, table: Channel<Ball>) {
//sampleEnd
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-channel-09.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -602,7 +602,7 @@ fun main() = runBlocking<Unit> {
//sampleEnd
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-channel-10.kt -->
> 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).
>
{style="note"}
Expand Down
12 changes: 6 additions & 6 deletions docs/topics/composing-suspending-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ suspend fun doSomethingUsefulTwo(): Int {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-compose-01.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -111,7 +111,7 @@ suspend fun doSomethingUsefulTwo(): Int {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-compose-02.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -164,7 +164,7 @@ suspend fun doSomethingUsefulTwo(): Int {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-compose-03.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -272,7 +272,7 @@ suspend fun doSomethingUsefulTwo(): Int {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-compose-04.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -339,7 +339,7 @@ suspend fun doSomethingUsefulTwo(): Int {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-compose-05.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -385,7 +385,7 @@ suspend fun failedConcurrentSum(): Int = coroutineScope {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-compose-06.kt -->
> 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).
>
{style="note"}
Expand Down
22 changes: 11 additions & 11 deletions docs/topics/coroutine-context-and-dispatchers.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ fun main() = runBlocking<Unit> {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-context-01.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -105,7 +105,7 @@ fun main() = runBlocking<Unit> {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-context-02.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -191,7 +191,7 @@ fun main() = runBlocking<Unit> {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-context-03.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -241,7 +241,7 @@ fun main() {
}
}
```

<!--- KNIT example-context-04.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -276,7 +276,7 @@ fun main() = runBlocking<Unit> {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-context-05.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -338,7 +338,7 @@ fun main() = runBlocking<Unit> {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-context-06.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -380,7 +380,7 @@ fun main() = runBlocking<Unit> {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-context-07.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -431,7 +431,7 @@ fun main() = runBlocking(CoroutineName("main")) {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-context-08.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -465,7 +465,7 @@ fun main() = runBlocking<Unit> {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-context-09.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -560,7 +560,7 @@ fun main() = runBlocking<Unit> {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-context-10.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -615,7 +615,7 @@ fun main() = runBlocking<Unit> {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-context-11.kt -->
> 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).
>
{style="note"}
Expand Down
12 changes: 6 additions & 6 deletions docs/topics/coroutines-basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fun main() = runBlocking { // this: CoroutineScope
//sampleEnd
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-basic-01.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -105,7 +105,7 @@ suspend fun doWorld() {
//sampleEnd
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-basic-02.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -146,7 +146,7 @@ suspend fun doWorld() = coroutineScope { // this: CoroutineScope
//sampleEnd
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-basic-03.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -190,7 +190,7 @@ suspend fun doWorld() = coroutineScope { // this: CoroutineScope
//sampleEnd
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-basic-04.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -231,7 +231,7 @@ fun main() = runBlocking {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-basic-05.kt -->
> 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).
>
{style="note"}
Expand Down Expand Up @@ -267,7 +267,7 @@ fun main() = runBlocking {
}
```
{kotlin-runnable="true" kotlin-min-compiler-version="1.3"}

<!--- KNIT example-basic-06.kt -->
> 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).
>
{style="note"}
Expand Down
Loading

0 comments on commit 6c6df2b

Please sign in to comment.