开发者

Cancel one request in ASINetworkQueue

开发者 https://www.devze.com 2023-03-03 17:59 出处:网络
How to cancel a particular request in asinetworkqueu开发者_开发百科e?[queue operations]; will return an NSArray of items in the queue, which you can then iterate and call cancel on any request you lik

How to cancel a particular request in asinetworkqueu开发者_开发百科e?


[queue operations]; will return an NSArray of items in the queue, which you can then iterate and call cancel on any request you like.

Something like:

for (ASIHTTPRequest *req in [queue operations])
{
    if (shouldCancel(req))
        [req cancel];
}
0

精彩评论

暂无评论...
验证码 换一张
取 消