Skip to content

Commit 681195a

Browse files
PaulWoitaschekqwwdfsad
authored andcommitted
Use the correct builder method flowChannel in the checkContext error description
As there is no `channelFlow`
1 parent f75cc17 commit 681195a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/common/src/flow/internal/SafeCollector.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ internal class SafeCollector<T>(
7979
if (emissionParentJob !== collectJob) {
8080
error(
8181
"Flow invariant is violated: emission from another coroutine is detected (child of $emissionParentJob, expected child of $collectJob). " +
82-
"FlowCollector is not thread-safe and concurrent emissions are prohibited. To mitigate this restriction please use 'flowChannel' builder instead of 'flow'"
82+
"FlowCollector is not thread-safe and concurrent emissions are prohibited. To mitigate this restriction please use 'channelFlow' builder instead of 'flow'"
8383
)
8484
}
8585
count + 1

0 commit comments

Comments
 (0)