mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-18 08:06:21 +08:00
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user