I'm trying to download data from server in chunks. I don't know how many iterations there will be, I just have to get chunks until the server responds with "no-more-data".
In v4 there was doWhile
operator but it was experimental and is removed in latest version.
There is a similar question (though I don't think this is a duplicate!) that suggests using expand
but I'm not sure if it is still the best or only way to do it in v5.
Or maybe I'm solving the wrong problem to begin with?... I.e. is it a good practice to use RxJs in such scenarios, or am I discouraged to use it this way (e.g. using expand
operator to achieve recursion, assuming no better way exists)???
If this is not something unsuitable to Reactive Extensions style in general, why did they remove the doWhile
operator? (It's not even on any roadmap)