<How to retrigger an Observable after timer ends i...
# stackoverflow
r
How to retrigger an Observable after timer ends in rxjava? I have a network call I make as part of a function that fetches the timer value for how long this data is going to be alive (basically the ttl of an object). I need to retrigger the same function as soon as the timer ends. fun refresh() { service.makeNetworkCall() .subscribe { response -> val ttl = response.ttl retriggerAgainAfterTtlExpires(ttl) } I'm currently retriggering the function in the .doOnNext() call as shown below. But this doesn't chain the observable to the...