Skip to content

Commit f911dce

Browse files
committed
Merge remote-tracking branch 'origin/master' into develop
2 parents 0b16abf + a73862f commit f911dce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/flow.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1070,7 +1070,7 @@ fun main() = runBlocking<Unit> {
10701070
//sampleStart
10711071
val nums = (1..3).asFlow().onEach { delay(300) } // numbers 1..3 every 300 ms
10721072
val strs = flowOf("one", "two", "three").onEach { delay(400) } // strings every 400 ms
1073-
val startTime = currentTimeMillis() // remember the start time
1073+
val startTime = System.currentTimeMillis() // remember the start time
10741074
nums.combine(strs) { a, b -> "$a -> $b" } // compose a single string with "combine"
10751075
.collect { value -> // collect and print
10761076
println("$value at ${System.currentTimeMillis() - startTime} ms from start")
@@ -1152,7 +1152,7 @@ fun requestFlow(i: Int): Flow<String> = flow {
11521152

11531153
fun main() = runBlocking<Unit> {
11541154
//sampleStart
1155-
val startTime = currentTimeMillis() // remember the start time
1155+
val startTime = System.currentTimeMillis() // remember the start time
11561156
(1..3).asFlow().onEach { delay(100) } // a number every 100 ms
11571157
.flatMapConcat { requestFlow(it) }
11581158
.collect { value -> // collect and print
@@ -1201,7 +1201,7 @@ fun requestFlow(i: Int): Flow<String> = flow {
12011201

12021202
fun main() = runBlocking<Unit> {
12031203
//sampleStart
1204-
val startTime = currentTimeMillis() // remember the start time
1204+
val startTime = System.currentTimeMillis() // remember the start time
12051205
(1..3).asFlow().onEach { delay(100) } // a number every 100 ms
12061206
.flatMapMerge { requestFlow(it) }
12071207
.collect { value -> // collect and print
@@ -1253,7 +1253,7 @@ fun requestFlow(i: Int): Flow<String> = flow {
12531253

12541254
fun main() = runBlocking<Unit> {
12551255
//sampleStart
1256-
val startTime = currentTimeMillis() // remember the start time
1256+
val startTime = System.currentTimeMillis() // remember the start time
12571257
(1..3).asFlow().onEach { delay(100) } // a number every 100 ms
12581258
.flatMapLatest { requestFlow(it) }
12591259
.collect { value -> // collect and print

0 commit comments

Comments
 (0)