token Page Request For Async Client
fun <ELEMENT, RESPONSE> tokenPageRequestForAsyncClient(responseForNextToken: (nextToken: String?) -> RESPONSE, responseToElements: (response: RESPONSE) -> List<ELEMENT>, responseToNextToken: (response: RESPONSE) -> String?, stopCondition: (current: List<ELEMENT>) -> Boolean? = null): List<ELEMENT>
阿里云 nextToken 风格的分页查询
Return
合并的结果
Parameters
response For Next Token
执行请求,根据入参的 token 返回本次响应
response To Next Token
基于响应获得下一次的 token
response To Elements
基于响应获得本次的项目列表
stop Condition
可选的参数,提前结束的条件