Suppose I have 10 urls, and I wish to make an HTTP request for each one of them.
I could create an observable of the URLs, then .flatMap()
the requests for each one of them, and then .subscribe
for the results. But that would make all of the requests at once.
Is there a way to impose a limit to the number of requests to a fixed number, in order not to overload the server
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…