christiangruber
01/08/2020, 11:07 PMcollect{}
to run in a particular context? Should I move what was done in a collect() to an onEach{} and then let collect{} just trigger final logging?Albert Beade
01/15/2020, 10:34 AMcollect
documentation (https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/collect.html), the collect
operator is usually usued with onEach
to process the emited items, so using it for that pourpose looks to me way to proceed. Hope this helps!christiangruber
01/15/2020, 5:08 PM