I have a list of URLs, the number of which is unknown until it stops (depending on some condition).
This is how I am currently using them:
from(observableUrls)
.pipe(
mergeMap(url => callHttpService(url) , 4),
retryWhen(
// Looking for an algorithm or suggestion?
)
).subscribe( result => {
// Processing results
});
How can I implement retry without restarting all over again if some of the URLs fail?
StackBlitz: