Skip to content

Commit bf30f68

Browse files
committed
Syntax fix to show that FlowCollector invokes action, not that action takes in FlowCollector
1 parent 5801a5a commit bf30f68

File tree

1 file changed

+1
-1
lines changed
  • kotlinx-coroutines-core/common/src/flow/operators

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/common/src/flow/operators/Delay.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ private fun <T> Flow<T>.timeoutInternal(
469469
values.onReceiveOrNull { value ->
470470
if (value !== DONE) {
471471
if (value === TIMEOUT) {
472-
action(downStream)
472+
downStream.action()
473473
values.cancel(ChildCancelledException())
474474
return@onReceiveOrNull false // Just end the loop here. Nothing more to be done.
475475
}

0 commit comments

Comments
 (0)