Hi there.
Does someone know a way to remove requests from an ASINetworkQueue in a persistent way? The reset function doesn't seem to do the job. What I'm trying to do is the following
- (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];
}