Skip to content

Commit

Permalink
Update Knit-generated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
qwwdfsad committed May 1, 2023
1 parent 5039855 commit c8ef9ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kotlinx-coroutines-core/jvm/test/guide/example-select-01.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import kotlinx.coroutines.channels.*
import kotlinx.coroutines.selects.*

fun CoroutineScope.fizz() = produce<String> {
while (true) { // sends "Fizz" every 300 ms
while (true) { // sends "Fizz" every 500 ms
delay(500)
send("Fizz")
}
}

fun CoroutineScope.buzz() = produce<String> {
while (true) { // sends "Buzz!" every 500 ms
while (true) { // sends "Buzz!" every 1000 ms
delay(1000)
send("Buzz!")
}
Expand Down

0 comments on commit c8ef9ec

Please sign in to comment.