有人知道以持久方式从 ASINetworkQueue 中删除请求的方法吗?重置功能似乎没有完成这项工作。我想要做的是以下
- (void)fillAndRunQueue:(ASINetworkQueue*)queue requests:(NSArray*)requests {
for (ASIHTTPRequest* request in requests) {
if ([request check]) { // Valid request => add it to the queue
[queue addOperation:request];
} else { // Invalid request => cancel immediatelly
// HOW TO REMOVE ALL PREVIOUS REQUESTS FROM THE QUEUE??
return;
}
}
[queue go];
}