sasikanth
03/08/2020, 1:14 PMObservableTransformer
when using Flow
or Channel
?Paul Woitaschek
03/08/2020, 6:56 PMstreetsofboston
03/08/2020, 7:03 PMfun <T> Flow<T>.myTransformer(...) = flow {
...
this.collect {
...
... do your stuff whatever it is ...
emit(it)
...
}
...
}
You can add loops, flow control, etc, whatever you wantPaul Woitaschek
03/08/2020, 7:06 PMstreetsofboston
03/08/2020, 7:08 PMPaul Woitaschek
03/08/2020, 7:09 PMstreetsofboston
03/08/2020, 9:34 PMapply
of the Transformer, like you said, but you can do a lot more funky stuff as well. 🙂sasikanth
03/09/2020, 2:19 AMObservableTransformer
. Thanks 👍🏽