Whos responsibility should it be? Lets say ForegroundGpsProvider, and it would expose that switchMap as a foregroundCurrentPositionObservable. Good. Now however I want to run a sync, sync is not rx api, so we need to subscribe and do it there
a
andrewg
12/17/2018, 3:02 AM
It's difficult to say. I'd consider each alternative. Making the act of subscribing trigger the work is ideal, but if that's not possible for whatever reason try separate lifecycle callbacks.
u
ursus
12/17/2018, 4:49 AM
Im not sure I follow. Im conteplating there should the subcribe be. in some imperative initialize() method or ctor init { }