Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-07-27 11:50:40 +08:00
parent 916931dd11
commit 6ca7efe8d1
15 changed files with 29 additions and 51 deletions

View File

@@ -280,16 +280,6 @@ class Request {
}
}
/*
* 取消请求
*
* 同一个cancel token 可以用于多个请求当一个cancel token取消时所有使用该cancel token的请求都会被取消。
* 所以参数可选
*/
void cancelRequests(CancelToken token) {
token.cancel("cancelled");
}
static String responseDecoder(
List<int> responseBytes,
RequestOptions options,