You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kotlinx-coroutines-core/common/src/flow/internal/SafeCollector.kt
+1-1
Original file line number
Diff line number
Diff line change
@@ -79,7 +79,7 @@ internal class SafeCollector<T>(
79
79
if (emissionParentJob !== collectJob) {
80
80
error(
81
81
"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'"
0 commit comments