Skip to content

Commit

Permalink
Fix kotlin coroutines test latest deps (open-telemetry#4873)
Browse files Browse the repository at this point in the history
  • Loading branch information
trask authored and RashmiRam committed May 23, 2022
1 parent 595763e commit 571aadc
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import kotlinx.coroutines.channels.produce
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.flow.consumeAsFlow
import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.selects.select
Expand All @@ -37,9 +38,9 @@ class KotlinCoroutineTests(private val dispatcher: CoroutineDispatcher) {
}
}

producer.consumeAsFlow().collect {
producer.consumeAsFlow().onEach {
tracedChild("consume_$it")
}
}.collect()
}

fun tracePreventedByCancellation() {
Expand Down

0 comments on commit 571aadc

Please sign in to comment.