Skip to content

Commit

Permalink
Replace references to deprecated delayEach operator (Kotlin#2127)
Browse files Browse the repository at this point in the history
Co-authored-by: Thibault SEISEL <[email protected]>
  • Loading branch information
thibseisel and Thibault SEISEL authored Jul 9, 2020
1 parent 75dede3 commit 5183b62
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions kotlinx-coroutines-core/common/src/flow/operators/Zip.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import kotlinx.coroutines.flow.internal.unsafeFlow as flow
*
* It can be demonstrated with the following example:
* ```
* val flow = flowOf(1, 2).delayEach(10)
* val flow2 = flowOf("a", "b", "c").delayEach(15)
* val flow = flowOf(1, 2).onEach { delay(10) }
* val flow2 = flowOf("a", "b", "c").onEach { delay(15) }
* flow.combine(flow2) { i, s -> i.toString() + s }.collect {
* println(it) // Will print "1a 2a 2b 2c"
* }
Expand All @@ -42,8 +42,8 @@ public fun <T1, T2, R> Flow<T1>.combine(flow: Flow<T2>, transform: suspend (a: T
*
* It can be demonstrated with the following example:
* ```
* val flow = flowOf(1, 2).delayEach(10)
* val flow2 = flowOf("a", "b", "c").delayEach(15)
* val flow = flowOf(1, 2).onEach { delay(10) }
* val flow2 = flowOf("a", "b", "c").onEach { delay(15) }
* combine(flow, flow2) { i, s -> i.toString() + s }.collect {
* println(it) // Will print "1a 2a 2b 2c"
* }
Expand Down Expand Up @@ -292,8 +292,8 @@ public inline fun <reified T, R> combineTransform(
*
* It can be demonstrated with the following example:
* ```
* val flow = flowOf(1, 2, 3).delayEach(10)
* val flow2 = flowOf("a", "b", "c", "d").delayEach(15)
* val flow = flowOf(1, 2, 3).onEach { delay(10) }
* val flow2 = flowOf("a", "b", "c", "d").onEach { delay(15) }
* flow.zip(flow2) { i, s -> i.toString() + s }.collect {
* println(it) // Will print "1a 2b 3c"
* }
Expand Down

0 comments on commit 5183b62

Please sign in to comment.