Sergey Grekov
Aug 23, 2017 · 1 min read

No practical need for two doOnNext, I made it only to emphasize logical steps in cycle.
As for generics..This is kind of trade off between readability and complexity. Generics won’t bring something valuable in that case, but code will look more complex and IMO ugly. Several casts in init phase not a big deal as for me.

)
    Sergey Grekov

    Written by

    Android Engineer at Hive Chat