Steffen Funke
04/14/2021, 8:40 AMdoOnNext
operators for side-effects, like printing, etc. What is the equivalent in Kotlin Flows? AFAIK, onEach
consumes the flow, and would not be appropriate there. Or am I missing something?wasyl
04/14/2021, 8:41 AMonEach
doesn’t consume the flow and afaik is pretty much replacement for doOnNext
Steffen Funke
04/14/2021, 8:42 AMdelay(..)
, etc., while RxJava's doOnNext
does notelizarov
04/14/2021, 8:43 AMdoOnNext { Thread.sleep(100) }
alters it in a similar way. No difference.elizarov
04/14/2021, 8:44 AMSteffen Funke
04/14/2021, 8:44 AMSteffen Funke
04/14/2021, 8:45 AMonEach
is the way. Thanks @elizarov, Pleasure to get an answer from the founder imself!Steffen Funke
04/14/2021, 8:45 AM