File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
kotlinx-coroutines-core/jvm/test/guide Expand file tree Collapse file tree 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.*
634634fun main () = runBlocking<Unit > {
635635 val tickerChannel = ticker(delayMillis = 100 , initialDelayMillis = 0 ) // create ticker channel
636636 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
638638
639- nextElement = withTimeoutOrNull(50 ) { tickerChannel.receive() } // all subsequent elements has 100ms delay
639+ nextElement = withTimeoutOrNull(50 ) { tickerChannel.receive() } // all subsequent elements have 100ms delay
640640 println (" Next element is not ready in 50 ms: $nextElement " )
641641
642642 nextElement = withTimeoutOrNull(60 ) { tickerChannel.receive() }
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ import kotlinx.coroutines.channels.*
1111fun main () = runBlocking<Unit > {
1212 val tickerChannel = ticker(delayMillis = 100 , initialDelayMillis = 0 ) // create ticker channel
1313 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
1515
16- nextElement = withTimeoutOrNull(50 ) { tickerChannel.receive() } // all subsequent elements has 100ms delay
16+ nextElement = withTimeoutOrNull(50 ) { tickerChannel.receive() } // all subsequent elements have 100ms delay
1717 println (" Next element is not ready in 50 ms: $nextElement " )
1818
1919 nextElement = withTimeoutOrNull(60 ) { tickerChannel.receive() }
You can’t perform that action at this time.
0 commit comments