Brais Gabin
02/01/2021, 7:57 PMMarc Knaup
02/01/2021, 8:36 PMonComplete { … }
and emit a special value downstream that signals the end of the stream. Downstream you can use .takeWhile {}
to stop the downstream flow if the shared flow has emitted the special value.