forked from arrow-kt/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerate ParZip Knit examples (arrow-kt#2821)
- Loading branch information
Showing
23 changed files
with
274 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-parzip-15.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// This file was automatically generated from ParZip.kt by Knit tool. Do not edit. | ||
package arrow.fx.coroutines.examples.exampleParzip15 | ||
|
||
import arrow.fx.coroutines.* | ||
import kotlinx.coroutines.Dispatchers | ||
|
||
suspend fun main(): Unit { | ||
//sampleStart | ||
val result = parZip( | ||
Dispatchers.IO, | ||
{ "First one is on ${Thread.currentThread().name}" }, | ||
{ "Second one is on ${Thread.currentThread().name}" }, | ||
{ "Third one is on ${Thread.currentThread().name}" }, | ||
{ "Fourth one is on ${Thread.currentThread().name}" }, | ||
{ "Fifth one is on ${Thread.currentThread().name}" }, | ||
{ "Sixth one is on ${Thread.currentThread().name}" } | ||
) { a, b, c, d, e, g -> | ||
"$a\n$b\n$c\n$d\n$e\n$g" | ||
} | ||
//sampleEnd | ||
println(result) | ||
} |
21 changes: 21 additions & 0 deletions
21
arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-parzip-16.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// This file was automatically generated from ParZip.kt by Knit tool. Do not edit. | ||
package arrow.fx.coroutines.examples.exampleParzip16 | ||
|
||
import arrow.fx.coroutines.* | ||
|
||
suspend fun main(): Unit { | ||
//sampleStart | ||
val result = parZip( | ||
{ "First one is on ${Thread.currentThread().name}" }, | ||
{ "Second one is on ${Thread.currentThread().name}" }, | ||
{ "Third one is on ${Thread.currentThread().name}" }, | ||
{ "Fourth one is on ${Thread.currentThread().name}" }, | ||
{ "Fifth one is on ${Thread.currentThread().name}" }, | ||
{ "Sixth one is on ${Thread.currentThread().name}" }, | ||
{ "Seventh one is on ${Thread.currentThread().name}" } | ||
) { a, b, c, d, e, g, h -> | ||
"$a\n$b\n$c\n$d\n$e\n$g\n$h" | ||
} | ||
//sampleEnd | ||
println(result) | ||
} |
21 changes: 21 additions & 0 deletions
21
arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-parzip-17.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// This file was automatically generated from ParZip.kt by Knit tool. Do not edit. | ||
package arrow.fx.coroutines.examples.exampleParzip17 | ||
|
||
import arrow.fx.coroutines.* | ||
import kotlinx.coroutines.Dispatchers | ||
|
||
suspend fun main(): Unit { | ||
//sampleStart | ||
val result = parZip( | ||
Dispatchers.IO, | ||
{ "First one is on ${Thread.currentThread().name}" }, | ||
{ "Second one is on ${Thread.currentThread().name}" } | ||
{ "Third one is on ${Thread.currentThread().name}" } | ||
{ "Fourth one is on ${Thread.currentThread().name}" } | ||
{ "Fifth one is on ${Thread.currentThread().name}" } | ||
{ "Sixth one is on ${Thread.currentThread().name}" } | ||
{ "Seventh one is on ${Thread.currentThread().name}" } | ||
) | ||
//sampleEnd | ||
println(result) | ||
} |
23 changes: 23 additions & 0 deletions
23
arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-parzip-18.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// This file was automatically generated from ParZip.kt by Knit tool. Do not edit. | ||
package arrow.fx.coroutines.examples.exampleParzip18 | ||
|
||
import arrow.fx.coroutines.* | ||
import kotlinx.coroutines.Dispatchers | ||
|
||
suspend fun main(): Unit { | ||
//sampleStart | ||
val result = parZip( | ||
Dispatchers.IO, | ||
{ "First one is on ${Thread.currentThread().name}" }, | ||
{ "Second one is on ${Thread.currentThread().name}" }, | ||
{ "Third one is on ${Thread.currentThread().name}" }, | ||
{ "Fourth one is on ${Thread.currentThread().name}" }, | ||
{ "Fifth one is on ${Thread.currentThread().name}" }, | ||
{ "Sixth one is on ${Thread.currentThread().name}" }, | ||
{ "Seventh one is on ${Thread.currentThread().name}" } | ||
) { a, b, c, d, e, f, g -> | ||
"$a\n$b\n$c\n$d\n$e\n$f\n$g" | ||
} | ||
//sampleEnd | ||
println(result) | ||
} |
22 changes: 22 additions & 0 deletions
22
arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-parzip-19.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// This file was automatically generated from ParZip.kt by Knit tool. Do not edit. | ||
package arrow.fx.coroutines.examples.exampleParzip19 | ||
|
||
import arrow.fx.coroutines.* | ||
|
||
suspend fun main(): Unit { | ||
//sampleStart | ||
val result = parZip( | ||
{ "First one is on ${Thread.currentThread().name}" }, | ||
{ "Second one is on ${Thread.currentThread().name}" }, | ||
{ "Third one is on ${Thread.currentThread().name}" }, | ||
{ "Fourth one is on ${Thread.currentThread().name}" }, | ||
{ "Fifth one is on ${Thread.currentThread().name}" }, | ||
{ "Sixth one is on ${Thread.currentThread().name}" }, | ||
{ "Seventh one is on ${Thread.currentThread().name}" }, | ||
{ "Eighth one is on ${Thread.currentThread().name}" } | ||
) { a, b, c, d, e, f, g, h -> | ||
"$a\n$b\n$c\n$d\n$e\n$f\n$g\n$h" | ||
} | ||
//sampleEnd | ||
println(result) | ||
} |
22 changes: 22 additions & 0 deletions
22
arrow-libs/fx/arrow-fx-coroutines/src/jvmTest/kotlin/examples/example-parzip-20.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// This file was automatically generated from ParZip.kt by Knit tool. Do not edit. | ||
package arrow.fx.coroutines.examples.exampleParzip20 | ||
|
||
import arrow.fx.coroutines.* | ||
import kotlinx.coroutines.Dispatchers | ||
|
||
suspend fun main(): Unit { | ||
//sampleStart | ||
val result = parZip( | ||
Dispatchers.IO, | ||
{ "First one is on ${Thread.currentThread().name}" }, | ||
{ "Second one is on ${Thread.currentThread().name}" } | ||
{ "Third one is on ${Thread.currentThread().name}" } | ||
{ "Fourth one is on ${Thread.currentThread().name}" } | ||
{ "Fifth one is on ${Thread.currentThread().name}" } | ||
{ "Sixth one is on ${Thread.currentThread().name}" } | ||
{ "Seventh one is on ${Thread.currentThread().name}" } | ||
{ "Eighth one is on ${Thread.currentThread().name}" } | ||
) | ||
//sampleEnd | ||
println(result) | ||
} |
Oops, something went wrong.