tokenPageRequestForAsyncClient

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

responseForNextToken

执行请求,根据入参的 token 返回本次响应

responseToNextToken

基于响应获得下一次的 token

responseToElements

基于响应获得本次的项目列表

stopCondition

可选的参数,提前结束的条件