How can I safely loop until there is nothing more to do without using a “placeholder” while conditon?

后端 未结 3 717
名媛妹妹
名媛妹妹 2021-01-23 16:47

In order to call my Web API method until no more data is returned (I\'m fetching it in batches, to keep each result set small, due to the 98-lb-weakling persona of the client (W

3条回答
  •  礼貌的吻别
    2021-01-23 17:32

    Why not return some metadata with response, e.g. {Pages:10} ? Then you know exactly how many records you're going after.

提交回复
热议问题