I'm using an API that returns only a limited number of results, say 100.
I'd like to repeat a query until the return result set is < 100
which would mean I've got the last result.
So it would go like this:
- Make query
- Is result set less than limit? If so, do again and append results.
- Once result set is less than limit, emit the final result.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…