taer
10/03/2019, 10:01 PMException in thread "main" java.lang.IllegalStateException: Flow invariant is violated:
Emission from another coroutine is detected.
Child of StandaloneCoroutine{Active}@2b552920, expected child of BlockingCoroutine{Completing}@2758fe70.
FlowCollector is not thread-safe and concurrent emissions are prohibited.
To mitigate this restriction please use 'channelFlow' builder instead of 'flow'
zak.taccardi
10/03/2019, 10:02 PMchannelFlow
buildertaer
10/03/2019, 10:03 PMPaul Woitaschek
10/04/2019, 6:41 AMbdawg.io
10/04/2019, 4:41 PMlaunchIn(scope)
which means you'll emit from that new scope. You indeed need to use a channel-based flow to communicate between the contexts.taer
10/04/2019, 7:26 PM