File tree 2 files changed +4
-4
lines changed
kotlinx-coroutines-core/jvm/test/guide
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -634,9 +634,9 @@ import kotlinx.coroutines.channels.*
634
634
fun main () = runBlocking<Unit > {
635
635
val tickerChannel = ticker(delayMillis = 100 , initialDelayMillis = 0 ) // create ticker channel
636
636
var nextElement = withTimeoutOrNull(1 ) { tickerChannel.receive() }
637
- println (" Initial element is available immediately: $nextElement " ) // initial delay hasn't passed yet
637
+ println (" Initial element is available immediately: $nextElement " ) // no initial delay
638
638
639
- nextElement = withTimeoutOrNull(50 ) { tickerChannel.receive() } // all subsequent elements has 100ms delay
639
+ nextElement = withTimeoutOrNull(50 ) { tickerChannel.receive() } // all subsequent elements have 100ms delay
640
640
println (" Next element is not ready in 50 ms: $nextElement " )
641
641
642
642
nextElement = withTimeoutOrNull(60 ) { tickerChannel.receive() }
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ import kotlinx.coroutines.channels.*
11
11
fun main () = runBlocking<Unit > {
12
12
val tickerChannel = ticker(delayMillis = 100 , initialDelayMillis = 0 ) // create ticker channel
13
13
var nextElement = withTimeoutOrNull(1 ) { tickerChannel.receive() }
14
- println (" Initial element is available immediately: $nextElement " ) // initial delay hasn't passed yet
14
+ println (" Initial element is available immediately: $nextElement " ) // no initial delay
15
15
16
- nextElement = withTimeoutOrNull(50 ) { tickerChannel.receive() } // all subsequent elements has 100ms delay
16
+ nextElement = withTimeoutOrNull(50 ) { tickerChannel.receive() } // all subsequent elements have 100ms delay
17
17
println (" Next element is not ready in 50 ms: $nextElement " )
18
18
19
19
nextElement = withTimeoutOrNull(60 ) { tickerChannel.receive() }
You can’t perform that action at this time.
0 commit comments